Jussi Pakkanen
f881532559
Updated Linux CI image to cosmic.
6 years ago
Dylan Baker
177fa050b1
travis: install llvm on osx
...
It turns out we have bugs.
6 years ago
Nirbheek Chauhan
38648bbb9f
Fix various small test failures on macOS
...
These weren't caught by the CI because we have pkg-config on it, and
these were testing non-pkg-config codepaths. The unity build on macOS
now doesn't have pkg-config to ensure that the codepath is tested.
6 years ago
Jon Turney
6306c56804
Fix .travis.yml for updated OSX image
...
Since [1], OSX builds on travis fail with:
Error: Refusing to uninstall /usr/local/Cellar/python/3.6.5_1
because it is required by gdal, numpy, postgis, which are currently installed.
Revise #3163
[1] https://blog.travis-ci.com/2018-07-19-xcode9-4-default-announce
6 years ago
Nirbheek Chauhan
5467eed186
Test that binaries that use external libraries work
...
When we link to an external library either with find_library() without
any dirs:, or with dependency(), we should be able to run uninstalled
out of the box without having to set any environment variables or other
shenanigans.
This is especially important on macOS because only the system frameworks
directory is in the default runtime path, and all other frameworks and
libraries need to be found with RPATH or absolute path to the dylib.
7 years ago
Nirbheek Chauhan
2d1fc25599
run_tests: Run all cross tests together
...
There is a lot of overhead for each travis job, because docker pull
takes 3 minutes. Each cross test takes 3-4 minutes.
To make things worse, sometimes Dockerhub is slow and docker pull takes
longer than 3 minutes.
7 years ago
Nirbheek Chauhan
bc4dd5e201
.travis.yml: Add CI for armhf and mingw
...
Also split them out to their own jobs. Travis gives us 5 parallel jobs
now, so we can parallelize it a bit more.
7 years ago
Jussi Pakkanen
77b72e8573
Update CI image to bionic.
7 years ago
Aleksey Filippov
aa3b4d5969
Skip CI for documentation-only pull requests
7 years ago
Aleksey Filippov
909c93eee5
Enable CI builds for release branches
7 years ago
Alexis Jeandet
d10b836155
Activate Qt5 tests on OSX CI
...
v2:
Qt5 only
Fix Qt PATH
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
7 years ago
Jon Turney
3a4ac966d0
Fix OSX CI with current homebrew
...
Since [1], python3 is now an alias for python, so installing it, rather than
upgrading it, will fail.
It seems that homebrew can't do this upgrade without breaking python2, so
uninstall and reinstall python2 (and mercurial which depends on it) to work
around that problem.
[1] https://brew.sh/2018/01/19/homebrew-1.5.0/
7 years ago
Benjamin Redelings
d5eeda56b3
Explicitly include homebrew paths.
7 years ago
Jussi Pakkanen
a4db467669
Use GCC 7 for cross compilation tests.
7 years ago
Nirbheek Chauhan
7c2ae55fab
Revert "Revert "Merge pull request #1931 from centricular/use-patched-ninja""
...
This reverts commit 5eb64a6f3e
.
Let's try again, with a fixed Ninja by QuLogic.
7 years ago
Jussi Pakkanen
cb8b5a165a
Removed --cov from travis.yml since coverage is currently disabled.
7 years ago
Jussi Pakkanen
21e2315afd
Remove coverage because pip is broken in Travis.
7 years ago
Jussi Pakkanen
5eb64a6f3e
Revert "Merge pull request #1931 from centricular/use-patched-ninja"
...
This reverts commit aab7ada356
, reversing
changes made to e1b24765af
.
7 years ago
Nirbheek Chauhan
6582cd28c8
CI: Use QuLogic's Ninja patches
...
This way we get some testing for the patches, and speed up our builds.
My server is hosted on a UK Linode, so it should have good uptimes.
However, we should likely move this into the Docker image at least
for Linux, and perhaps put it in a CI cache for the rest.
7 years ago
Jussi Pakkanen
fb4ab84491
Use && to ensure failed test run is flagged properly.
8 years ago
Elliott Sales de Andrade
617a0da426
Give each coverage build a unique name.
...
Travis builds are currently build number (123.1, 123.2, etc.) and
AppVeyor is some random string, making it hard to determine which builds
cover what.
8 years ago
Elliott Sales de Andrade
8a9479f8ea
Enable code coverage on Travis.
8 years ago
Jussi Pakkanen
8d3d6382e8
Upgrade CI image to Ubuntu Zesty.
8 years ago
Jussi Pakkanen
b48daeda1a
Make it possible to only do unity builds on subprojects.
8 years ago
Nirbheek Chauhan
de45535b7d
travis: Also set OBJC and OBJCXX to CC/CXX
...
Else they are only autodetected and we don't test both GCC and Clang.
8 years ago
Jussi Pakkanen
344231d336
Only build master on pushes.
8 years ago
Nirbheek Chauhan
1e1abc675e
travis.yml: Export CC and CXX inside the docker instance
...
docker does not inherit the parent environment and loses the CC/CXX
settings for testing against clang and gcc.
8 years ago
Nirbheek Chauhan
d41b903f07
travis.yml: Don't test for GCC on OS X
...
GCC on OS X is just a wrapper around Clang, so the test results will
always be identical.
8 years ago
Nirbheek Chauhan
0af9941986
travis: Disable sudo; we don't need it
...
Requiring sudo makes builds take massively longer to start. At one point
we had a build waiting for a full hour to start.
https://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/
8 years ago
Nirbheek Chauhan
9ec6c7e238
travis.yml: Run tests for both unity builds too
8 years ago
Nirbheek Chauhan
8213ef5511
travis.yml: Run tests against both gcc and clang
8 years ago
Jussi Pakkanen
8105c6f027
Upgrade docker build image to yakkety.
8 years ago
Nirbheek Chauhan
cd6d5a642d
travis: Manually export TRAVIS=true for linux builds
...
Docker wipes the environment before starting a build, so TRAVIS doesn't
get set and our run_tests.py script doesn't print logs for failing
tests.
8 years ago
Nirbheek Chauhan
3b67e1e379
travis/osx: Set SDKROOT for XCode
...
Needed at least for Swift
8 years ago
Jussi Pakkanen
432f515bc0
Use ninja backend on OSX CI builds.
9 years ago
Jussi Pakkanen
bda06cee12
Added OSX support for Travis.
9 years ago
Jussi Pakkanen
d3d37c4296
Travis conf cleanup.
9 years ago
Jussi Pakkanen
d2d1f77866
Copy contents of current checkout into Docker container. This should make MR builds work properly.
9 years ago
Jussi Pakkanen
28b555d2c8
Whitespace fix to test new Docker setup.
9 years ago
Jussi Pakkanen
7e664fde8c
Use only one Docker run invocation since two seem to bee too much and break it.
9 years ago
Jussi Pakkanen
061c04db3f
Specify tag to use for building.
9 years ago
Jussi Pakkanen
d08a23c001
Lint fix to get the build started.
9 years ago
Jussi Pakkanen
1000ad4898
Added experimental travis file.
9 years ago
Jussi Pakkanen
5222fb9226
Removed travis file because it uses precise which is too ancient to work.
10 years ago
Jussi Pakkanen
cc82a02720
Add some dependencies to travis file.
10 years ago
Jussi Pakkanen
e52312293d
Added travis file to test CI.
10 years ago