Skip to content

Commit 0b42704

Browse files
committed
WIP: fix CI
1 parent 4d767e1 commit 0b42704

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.travis.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ os:
1111
- osx
1212

1313
before_script:
14+
# install extra stuff for cross-compilation
15+
- if [[ "$TRAVIS_OS_NAME" == linux ]]; then sudo apt install gcc-multilib; fi
1416
# macOS weirdness (https://github.com/travis-ci/travis-ci/issues/6307, https://github.com/travis-ci/travis-ci/issues/10165)
1517
- if [[ "$TRAVIS_OS_NAME" == osx ]]; then rvm get stable; fi
1618
# Compute the rust version we use. We do not use "language: rust" to have more control here.
1719
- |
18-
if [ "$TRAVIS_EVENT_TYPE" = cron ]; then
20+
if [[ "$TRAVIS_EVENT_TYPE" == cron ]]; then
1921
RUST_TOOLCHAIN=nightly
2022
else
2123
RUST_TOOLCHAIN=$(cat rust-version)
@@ -38,10 +40,13 @@ script:
3840
cargo build --release --all-features --all-targets &&
3941
cargo install --all-features --force --path .
4042
- |
41-
# Get ourselves a MIR-full libstd
43+
# Get ourselves a MIR-full libstd for the host and a foreign architecture
4244
cargo miri setup &&
43-
cargo miri setup --target i686-unknown-linux-gnu &&
44-
cargo miri setup --target i686-apple-darwin
45+
if [[ "$TRAVIS_OS_NAME" == osx ]]; then
46+
cargo miri setup --target i686-apple-darwin
47+
else
48+
cargo miri setup --target i686-unknown-linux-gnu
49+
fi
4550
- |
4651
# Test miri with full MIR, on the host and other architectures
4752
MIRI_SYSROOT=$MIRI_SYSROOT_BASE/HOST cargo test --release --all-features &&

appveyor.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ build: false
2727
test_script:
2828
- set RUSTFLAGS=-g
2929
- set RUST_BACKTRACE=1
30-
# Test plain miri
30+
# Build miri
3131
- cargo build --release --all-features --all-targets
32-
- cargo test --release --all-features
3332
# Get ourselves a MIR-full libstd, and use it henceforth
3433
- cargo run --release --all-features --bin cargo-miri -- miri setup
3534
- set MIRI_SYSROOT=%USERPROFILE%\AppData\Local\miri\miri\cache\HOST

0 commit comments

Comments
 (0)