2018-10-01 05:32:22 -05:00
|
|
|
language: generic
|
|
|
|
cache:
|
|
|
|
# Cache the global cargo directory, but NOT the local `target` directory which
|
|
|
|
# we cannot reuse anyway when the nightly changes (and it grows quite large
|
|
|
|
# over time).
|
|
|
|
directories:
|
|
|
|
- /home/travis/.cargo
|
2017-07-19 08:06:21 -05:00
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
2018-08-14 10:21:02 -05:00
|
|
|
- osx
|
2018-12-10 03:19:44 -06:00
|
|
|
dist: xenial
|
2017-07-19 08:06:21 -05:00
|
|
|
|
2016-04-13 17:10:31 -05:00
|
|
|
before_script:
|
2018-12-12 12:15:57 -06:00
|
|
|
# Linux: install extra stuff for cross-compilation
|
2018-12-10 03:19:44 -06:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == linux ]]; then sudo apt update && sudo apt install gcc-multilib; fi
|
2018-10-01 05:32:22 -05:00
|
|
|
# Compute the rust version we use. We do not use "language: rust" to have more control here.
|
|
|
|
- |
|
2018-12-10 03:19:44 -06:00
|
|
|
if [[ "$TRAVIS_EVENT_TYPE" == cron ]]; then
|
2018-10-01 05:32:22 -05:00
|
|
|
RUST_TOOLCHAIN=nightly
|
|
|
|
else
|
2018-10-21 11:46:28 -05:00
|
|
|
RUST_TOOLCHAIN=$(cat rust-version)
|
2018-10-01 05:32:22 -05:00
|
|
|
fi
|
|
|
|
# install Rust
|
|
|
|
- curl https://build.travis-ci.org/files/rustup-init.sh -sSf | sh -s -- -y --default-toolchain "$RUST_TOOLCHAIN"
|
|
|
|
- export PATH=$HOME/.cargo/bin:$PATH
|
|
|
|
- rustc --version
|
2018-08-14 10:21:02 -05:00
|
|
|
|
2016-04-13 17:10:31 -05:00
|
|
|
script:
|
2018-12-12 12:15:57 -06:00
|
|
|
- ./travis.sh
|
2018-08-14 10:21:02 -05:00
|
|
|
|
2016-04-13 17:10:31 -05:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: never
|
2017-09-09 04:28:24 -05:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2016-04-15 09:50:36 -05:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- RUST_TEST_NOCAPTURE=1
|