rust/.travis.yml

61 lines
1.6 KiB
YAML
Raw Normal View History

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 15:06:21 +02:00
os:
- linux
- osx
2017-07-19 15:06:21 +02:00
2016-04-14 00:10:31 +02:00
before_script:
2018-10-30 15:07:40 +01:00
# macOS weirdness (https://github.com/travis-ci/travis-ci/issues/6307)
- if [[ "$TRAVIS_OS_NAME" == osx ]]; then rvm get stable; fi
# Compute the rust version we use. We do not use "language: rust" to have more control here.
- |
if [ "$TRAVIS_EVENT_TYPE" = cron ]; then
RUST_TOOLCHAIN=nightly
else
RUST_TOOLCHAIN=$(cat rust-version)
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
# customize installation
2017-03-23 15:52:11 +01:00
- rustup target add i686-unknown-linux-gnu
- rustup target add i686-pc-windows-gnu
- rustup target add i686-pc-windows-msvc
- rustup component add rust-src
- cargo install xargo || echo "Skipping xargo install"
2016-04-14 00:10:31 +02:00
script:
2017-08-18 11:42:00 +02:00
- set -e
2017-06-21 08:55:32 +02:00
- |
# Test and install plain miri
cargo build --release --all-features &&
2018-10-30 11:26:53 +01:00
cargo test --release --all-features &&
cargo install --all-features --force --path .
- |
# get ourselves a MIR-full libstd
xargo/build.sh &&
export MIRI_SYSROOT=~/.xargo/HOST
2018-10-30 11:26:53 +01:00
- |
# run all tests with full mir
cargo test --release --all-features
- |
# Test cargo integration
2018-10-30 11:26:53 +01:00
(cd cargo-miri-test && ./run-test.py)
2016-04-14 00:10:31 +02:00
notifications:
email:
on_success: never
2017-09-09 11:28:24 +02:00
branches:
only:
- master
2016-04-15 16:50:36 +02:00
env:
global:
- RUST_TEST_NOCAPTURE=1