Skip to content
Snippets Groups Projects
Unverified Commit 1e0e23c1 authored by teor's avatar teor
Browse files

Travis: Add a macOS chutney job, but don't wait for it to finish

Since Travis macOS has IPv6 support (and Travis Linux does not), chutney
will now run its IPv6 networks as part of Travis CI.

But since chutney is slow, don't wait for the macOS chutney to finish.
(Travis have fixed the duplicate notification bug in fast_finish. So we
can use fast_finish and allow_failure to finish early. Unfortunately,
allow_failure also means we ignore failures in macOS chutney.)

Also make sure that we have:
* a compile on each platform, with each compiler,
* a check on each platform, and
* a check on each compiler.

Finally, sort builds: allow fail last, macOS first, slowest first.

Closes ticket 30860.
Closes ticket 31859 for 0.2.9.
parent 4e429783
No related branches found
No related tags found
No related merge requests found
...@@ -27,34 +27,33 @@ env: ...@@ -27,34 +27,33 @@ env:
matrix: matrix:
## include creates builds with gcc, linux, unless we override those defaults ## include creates builds with gcc, linux, unless we override those defaults
include: include:
## clang is the default macOS compiler, so we use it for the macOS job ## We run basic tests on macOS
- compiler: clang - compiler: clang
os: osx os: osx
## We include a single coverage build with the best options for coverage ## We run chutney on Linux, because it's faster than chutney on macOS
- env: COVERAGE_OPTIONS="--enable-coverage" HARDENING_OPTIONS="" - env: CHUTNEY="yes" CHUTNEY_ALLOW_FAILURES="2" SKIP_MAKE_CHECK="yes"
## We only want to check these build option combinations once
## (they shouldn't vary by compiler or OS)
## We run coverage with hardening off, which seems like enough
# - env: HARDENING_OPTIONS=""
## We check asciidoc with distcheck, to make sure we remove doc products ## We check asciidoc with distcheck, to make sure we remove doc products
## We use Linux clang, because there are no other Linux clang jobs
- env: DISTCHECK="yes" ASCIIDOC_OPTIONS="" SKIP_MAKE_CHECK="yes" - env: DISTCHECK="yes" ASCIIDOC_OPTIONS="" SKIP_MAKE_CHECK="yes"
# We also try running a hardened clang build with chutney on Linux.
- env: CHUTNEY="yes" SKIP_MAKE_CHECK="yes" CHUTNEY_ALLOW_FAILURES="2"
compiler: clang compiler: clang
## We include a single coverage build with the best options for coverage
- env: COVERAGE_OPTIONS="--enable-coverage" HARDENING_OPTIONS=""
## We run chutney on macOS, because macOS Travis has IPv6
- env: CHUTNEY="yes" CHUTNEY_ALLOW_FAILURES="2" SKIP_MAKE_CHECK="yes"
os: osx
## Uncomment to allow the build to report success (with non-required ## Allow the build to report success (with non-required sub-builds
## sub-builds continuing to run) if all required sub-builds have ## continuing to run) if all required sub-builds have succeeded.
## succeeded. This is somewhat buggy currently: it can cause fast_finish: true
## duplicate notifications and prematurely report success if a
## single sub-build has succeeded. See
## https://github.com/travis-ci/travis-ci/issues/1696
# fast_finish: true
## Careful! We use global envs, which makes it hard to allow failures by env: ## Careful! We use global envs, which makes it hard to allow failures by env:
## https://docs.travis-ci.com/user/customizing-the-build#matching-jobs-with-allow_failures ## https://docs.travis-ci.com/user/customizing-the-build#matching-jobs-with-allow_failures
# allow_failures: allow_failures:
# - compiler: gcc ## macOS chutney is very slow, so we let the build finish before it's done
# os: linux ## We'd like to fast finish, but still eventually show failures.
## But Travis doesn't have that option.
- env: CHUTNEY="yes" CHUTNEY_ALLOW_FAILURES="2" SKIP_MAKE_CHECK="yes"
os: osx
## (Linux only) Use the latest Linux image (Ubuntu Trusty) ## (Linux only) Use the latest Linux image (Ubuntu Trusty)
dist: trusty dist: trusty
......
o Testing:
- Run the chutney IPv6 networks as part of Travis CI.
Closes ticket 30860.
o Testing: o Testing:
- Remove some redundant Travis CI jobs, to speed up CI. - Simplify the Travis CI build matrix, and optimise for build time.
Closes ticket 31859. Closes ticket 31859.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment