]> git.lizzy.rs Git - rust.git/blob - .travis.yml
Merge pull request #580 from RalfJung/cargo-miri
[rust.git] / .travis.yml
1 language: generic
2 cache:
3   # Cache the global cargo directory, but NOT the local `target` directory which
4   # we cannot reuse anyway when the nightly changes (and it grows quite large
5   # over time).
6   directories:
7     - /home/travis/.cargo
8
9 os:
10 - linux
11 - osx
12 dist: xenial
13
14 before_script:
15 # Linux: install extra stuff for cross-compilation
16 - if [[ "$TRAVIS_OS_NAME" == linux ]]; then sudo apt update && sudo apt install gcc-multilib; fi
17 # Compute the rust version we use. We do not use "language: rust" to have more control here.
18 - |
19   if [[ "$TRAVIS_EVENT_TYPE" == cron ]]; then
20     RUST_TOOLCHAIN=nightly
21   else
22     RUST_TOOLCHAIN=$(cat rust-version)
23   fi
24 # install Rust
25 - curl https://build.travis-ci.org/files/rustup-init.sh -sSf | sh -s -- -y --default-toolchain "$RUST_TOOLCHAIN"
26 - export PATH=$HOME/.cargo/bin:$PATH
27 - rustc --version
28
29 script:
30 - ./travis.sh
31
32 notifications:
33   email:
34     on_success: never
35 branches:
36   only:
37   - master
38 env:
39   global:
40   - RUST_TEST_NOCAPTURE=1
41   - RUST_BACKTRACE=1