Skip to content

Commit ef08064

Browse files
committed
CI: set RUN_TEST as a env variable
1 parent 42377e2 commit ef08064

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ rust:
55
- stable
66
- nightly
77
env:
8-
- TARGET=x86_64-unknown-linux-gnu
9-
- TARGET=x86_64-unknown-linux-musl
8+
- TARGET=x86_64-unknown-linux-gnu RUN_TEST=1
9+
- TARGET=x86_64-unknown-linux-musl RUN_TEST=1
1010
- TARGET=aarch64-unknown-linux-gnu RUSTFLAGS="-C linker=aarch64-linux-gnu-gcc"
1111
- TARGET=arm-unknown-linux-gnueabi RUSTFLAGS="-C linker=arm-linux-gnueabi-gcc"
1212
matrix:
@@ -39,7 +39,7 @@ before_script:
3939
script:
4040
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cargo build --verbose --no-default-features --features gnu,lsb,networking,posix --target $TARGET; fi
4141
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cargo build --verbose --all --target $TARGET; fi
42-
- if [[ "$TARGET" =~ "x86_64-unknown-linux-*" ]]; then cargo test --verbose --all --target $TARGET; fi
42+
- if [[ "$RUN_TEST" == "1" ]]; then cargo test --verbose --all --target $TARGET; fi
4343
notifications:
4444
email:
4545
on_success: never

0 commit comments

Comments
 (0)