Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework travis.yml #2356

Merged
merged 4 commits into from
Mar 27, 2020
Merged

Rework travis.yml #2356

merged 4 commits into from
Mar 27, 2020

Conversation

rajat2004
Copy link
Contributor

@rajat2004 rajat2004 commented Dec 20, 2019

Remove docker build, add Ubuntu 18.04, 16.04, and Windows, macOS builds using build.sh as well as Unity/build.sh

This should help in catching breaking changes on different OSes, as well as on Unreal vs Unity
Unfortunately adding Unreal inside Travis doesn't seem possible

Should GCC build be added also?
Unity compilation throws about 340 warnings, which exceeds the Travis output log size (4 MB), seems like incorrect flags are being applied to the Unity build (Created issue #2478 for discussion)

Needs #2333 and #2328 (if only #2333 is there, CMake won't be downloaded when it's not required and without the fix of build.sh in #2328, cmake won't be found)

@rajat2004 rajat2004 mentioned this pull request Dec 20, 2019
@rajat2004
Copy link
Contributor Author

Windows build is working now, build with this commit on my Travis page: https://travis-ci.com/rajat2004/AirSim/builds/142728157

@madratman
Copy link
Contributor

lgtm on the first part, quite some unnecessary if else's in the original file.

@rajat2004
Copy link
Contributor Author

https://travis-ci.com/github/rajat2004/AirSim/builds/154715324
This is a build with my 2 test branches, should be quite up-to-date since this was run 3 days ago, with the Unity fixes included (since this is a PR build against the Travis branch)
Will put links of other builds as well, and rebase this one so that the latest master can be tested

@madratman
Copy link
Contributor

yeah, I somehow missed the links on the top of the page - hence deleted my comment. thanks though

Remove docker build, add Ubuntu 18.04, 16.04, Windows, OSX builds
Hack for correct Find.exe on Windows, issue microsoft#1753
Hack for reducing compilation warning output while still seeing errors
@rajat2004
Copy link
Contributor Author

Don't know why Travis build isn't appearing on this PR, current build of master with the branch - https://travis-ci.com/github/rajat2004/AirSim/builds/155782696
Also deleted my old comments since were quite out of date

else
export CC="clang-5.0"
export CXX="clang++-5.0"
fi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we know which version of clang these pre-built binaries are?
does travis allow for choosing a version of pre-built binaries?

In general, I am planning to remove the custom libcxx in airsim's setup.sh scripts.
https://docs.unrealengine.com/en-US/Platforms/Linux/GettingStarted/index.html if one uses the clang version with the right unreal version as specified in that page, a custom libcxx build can be obviated.

hence, curious to know which version are these pre built binaries and is there an option to select them

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've specified the binary version here - https://github.com/microsoft/AirSim/pull/2356/files#diff-354f30a63fb0907d4ad57269548329e3R27

Removing the need for custom libcxx would be good

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah cool, that's exactly the kind of line I was trying to find.
PR is looking good to me.
I am not sure if travis has a weird edge case when one updates the yml itself? However, I would be surprised if that isn't handled by them

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works even when travis.yml is updated, might be a problem with AirSim itself, have noticed that the build doesn't appear on the other PRs also

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

really weird. accio @sytelus, if I may.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@madratman @sytelus Were you able to figure out why the Travis build isn't working? It's still not triggering on the PRs

@madratman madratman merged commit 5067d74 into microsoft:master Mar 27, 2020
@rajat2004
Copy link
Contributor Author

Wow, great, thanks for merging!

@rajat2004 rajat2004 deleted the travis-rework branch March 27, 2020 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants