4 # Determine configuration
5 if [ "$TRAVIS_OS_NAME" == osx ]; then
6 FOREIGN_TARGET=i686-apple-darwin
8 FOREIGN_TARGET=i686-unknown-linux-gnu
10 export CARGO_EXTRA_FLAGS="--all-features"
11 export RUSTC_EXTRA_FLAGS="-D warnings"
14 echo "Build and install miri"
15 ./miri build --all-targets
22 # "miri test" has built the sysroot for us, now this should pass without
23 # any interactive questions.
24 test-cargo-miri/run-test.py
27 echo "Test host architecture"
31 echo "Test foreign architecture ($FOREIGN_TARGET)"
32 MIRI_TEST_TARGET="$FOREIGN_TARGET" run_tests