Jussi Pakkanen
5eb3875175
Update Linux CI image to Ubuntu Eoan. [skip ci]
2019-10-19 21:52:59 +03:00
Nirbheek Chauhan
48f3495178
tests: Upgrade to ninja v1.9 for Linux
...
Also use the upstream release. This eliminates Meson CI's dependence
on my server.
2019-09-01 22:58:33 +03:00
Nirbheek Chauhan
2522af4b26
travis/macos: Use brew ninja and upgrade to v1.9.0
2019-09-01 22:58:33 +03:00
Nirbheek Chauhan
c2b3208e28
.travis.yml: Fix cross-mingw test failures
...
Run docker with seccomp:unconfined, since otherwise we're blocked from
calling CreateToolhelp32Snapshot() inside the cross-mingw tests,
specifically `common/122 shared module`.
2019-07-24 22:04:18 +00:00
Jussi Pakkanen
b1fbbde0b0
Use pytest parallelisation if available.
2019-07-09 22:38:30 +03:00
Jussi Pakkanen
435b3df6a9
Do not run unittests with unity builds because that is redundant.
2019-07-09 22:03:58 +03:00
Jussi Pakkanen
f881532559
Updated Linux CI image to cosmic.
2018-12-09 16:23:19 +02:00
Dylan Baker
177fa050b1
travis: install llvm on osx
...
It turns out we have bugs.
2018-10-01 14:23:34 -07:00
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.
2018-08-19 16:03:22 -07:00
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
2018-08-01 15:57:46 +03:00
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.
2018-06-18 06:33:23 +00:00
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.
2018-06-10 01:52:57 +00:00
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.
2018-06-05 10:50:22 +00:00
Jussi Pakkanen
77b72e8573
Update CI image to bionic.
2018-05-02 22:02:33 +03:00
Aleksey Filippov
aa3b4d5969
Skip CI for documentation-only pull requests
2018-03-25 17:58:30 +03:00
Aleksey Filippov
909c93eee5
Enable CI builds for release branches
2018-03-21 20:18:25 +00:00
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>
2018-03-05 13:14:25 +00:00
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/
2018-03-03 21:20:39 +02:00
Benjamin Redelings
d5eeda56b3
Explicitly include homebrew paths.
2018-01-01 22:47:14 -08:00
Jussi Pakkanen
a4db467669
Use GCC 7 for cross compilation tests.
2017-10-28 21:38:09 +03:00
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.
2017-09-18 18:40:24 +03:00
Jussi Pakkanen
cb8b5a165a
Removed --cov from travis.yml since coverage is currently disabled.
2017-09-10 22:26:23 +03:00
Jussi Pakkanen
21e2315afd
Remove coverage because pip is broken in Travis.
2017-09-09 12:49:34 +03:00
Jussi Pakkanen
5eb64a6f3e
Revert "Merge pull request #1931 from centricular/use-patched-ninja"
...
This reverts commit aab7ada356
, reversing
changes made to e1b24765af
.
2017-07-18 00:30:52 +02:00
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.
2017-07-17 14:23:59 +05:30
Jussi Pakkanen
fb4ab84491
Use && to ensure failed test run is flagged properly.
2017-06-03 23:40:16 +03:00
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.
2017-05-21 16:11:33 -04:00
Elliott Sales de Andrade
8a9479f8ea
Enable code coverage on Travis.
2017-05-21 16:11:33 -04:00
Jussi Pakkanen
8d3d6382e8
Upgrade CI image to Ubuntu Zesty.
2017-05-09 18:39:50 +03:00
Jussi Pakkanen
b48daeda1a
Make it possible to only do unity builds on subprojects.
2017-04-15 18:28:36 +03:00
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.
2017-02-21 01:36:08 +05:30
Jussi Pakkanen
344231d336
Only build master on pushes.
2016-12-07 00:18:15 +02:00
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.
2016-11-08 16:19:28 +05:30
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.
2016-11-08 16:08:50 +05:30
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/
2016-11-04 14:28:19 +05:30
Nirbheek Chauhan
9ec6c7e238
travis.yml: Run tests for both unity builds too
2016-11-04 13:55:52 +05:30
Nirbheek Chauhan
8213ef5511
travis.yml: Run tests against both gcc and clang
2016-11-04 13:48:54 +05:30
Jussi Pakkanen
8105c6f027
Upgrade docker build image to yakkety.
2016-10-26 14:16:04 -07:00
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.
2016-10-08 13:14:54 +02:00
Nirbheek Chauhan
3b67e1e379
travis/osx: Set SDKROOT for XCode
...
Needed at least for Swift
2016-10-07 11:51:18 +05:30
Jussi Pakkanen
432f515bc0
Use ninja backend on OSX CI builds.
2016-05-30 22:13:23 +03:00
Jussi Pakkanen
bda06cee12
Added OSX support for Travis.
2016-05-30 22:08:35 +03:00
Jussi Pakkanen
d3d37c4296
Travis conf cleanup.
2016-05-28 22:52:17 +03:00
Jussi Pakkanen
d2d1f77866
Copy contents of current checkout into Docker container. This should make MR builds work properly.
2016-05-28 22:45:13 +03:00
Jussi Pakkanen
28b555d2c8
Whitespace fix to test new Docker setup.
2016-05-28 22:17:57 +03:00
Jussi Pakkanen
7e664fde8c
Use only one Docker run invocation since two seem to bee too much and break it.
2016-05-26 21:34:20 +03:00
Jussi Pakkanen
061c04db3f
Specify tag to use for building.
2016-05-26 21:23:01 +03:00
Jussi Pakkanen
d08a23c001
Lint fix to get the build started.
2016-05-26 20:44:32 +03:00
Jussi Pakkanen
1000ad4898
Added experimental travis file.
2016-05-26 20:42:04 +03:00
Jussi Pakkanen
5222fb9226
Removed travis file because it uses precise which is too ancient to work.
2015-03-23 16:20:02 +02:00