Skip to content

Commit bc69323

Browse files
committed
Travis CI: fixes
1 parent 9fb1658 commit bc69323

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sudo: false
77
matrix:
88
include:
99
- rust: 1.32.0
10-
env: DESCRIPTION="Linux, 1.32.0", ALLOC=0
10+
env: DESCRIPTION="Linux, 1.32.0" ALLOC=0
1111
os: linux
1212

1313
- rust: stable
@@ -27,7 +27,7 @@ matrix:
2727

2828
- rust: nightly
2929
os: linux
30-
env: DESCRIPTION="Linux, nightly, docs", NIGHTLY=1
30+
env: DESCRIPTION="Linux, nightly, docs" NIGHTLY=1
3131
install:
3232
- cargo --list | egrep "^\s*deadlinks$" -q || cargo install cargo-deadlinks
3333
- cargo deadlinks -V

utils/ci/script.sh

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ set -ex
88
if [ -z $TARGET ]; then
99
CARGO=cargo
1010
else
11-
CARGO="cross --target $TARGET"
11+
CARGO=cross
12+
TARGET="--target $TARGET"
1213
fi
1314

1415
# ALLOC defaults on; is disabled for rustc < 1.36
@@ -23,34 +24,34 @@ fi
2324

2425
main() {
2526
if [ "0$NIGHTLY" -ge 1 ]; then
26-
$CARGO test --all-features
27-
$CARGO test --benches --features=nightly
27+
$CARGO test $TARGET --all-features
28+
$CARGO test $TARGET --benches --features=nightly
2829
else
2930
# all stable features:
30-
$CARGO test --features=serde1,log,small_rng
31+
$CARGO test $TARGET --features=serde1,log,small_rng
3132
fi
3233

3334
if [ "$ALLOC" -ge 1 ]; then
34-
$CARGO test --tests --no-default-features --features=alloc,getrandom,small_rng
35+
$CARGO test $TARGET --tests --no-default-features --features=alloc,getrandom,small_rng
36+
$CARGO test $TARGET --manifest-path rand_core/Cargo.toml --no-default-features --features=alloc
3537
fi
3638

37-
$CARGO test --tests --no-default-features
38-
$CARGO test --examples
39+
$CARGO test $TARGET --tests --no-default-features
40+
$CARGO test $TARGET --examples
3941

40-
$CARGO test --manifest-path rand_core/Cargo.toml
41-
$CARGO test --manifest-path rand_core/Cargo.toml --no-default-features
42-
$CARGO test --manifest-path rand_core/Cargo.toml --no-default-features --features=alloc
43-
$CARGO test --manifest-path rand_core/Cargo.toml --no-default-features --features=getrandom
42+
$CARGO test $TARGET --manifest-path rand_core/Cargo.toml
43+
$CARGO test $TARGET --manifest-path rand_core/Cargo.toml --no-default-features
44+
$CARGO test $TARGET --manifest-path rand_core/Cargo.toml --no-default-features --features=getrandom
4445

45-
$CARGO test --manifest-path rand_distr/Cargo.toml
46-
$CARGO test --manifest-path rand_isaac/Cargo.toml --features=serde1
47-
$CARGO test --manifest-path rand_pcg/Cargo.toml --features=serde1
48-
$CARGO test --manifest-path rand_xorshift/Cargo.toml --features=serde1
49-
$CARGO test --manifest-path rand_xoshiro/Cargo.toml
50-
$CARGO test --manifest-path rand_chacha/Cargo.toml
51-
$CARGO test --manifest-path rand_hc/Cargo.toml
52-
$CARGO test --manifest-path rand_jitter/Cargo.toml
53-
$CARGO test --manifest-path rand_os/Cargo.toml
46+
$CARGO test $TARGET --manifest-path rand_distr/Cargo.toml
47+
$CARGO test $TARGET --manifest-path rand_isaac/Cargo.toml --features=serde1
48+
$CARGO test $TARGET --manifest-path rand_pcg/Cargo.toml --features=serde1
49+
$CARGO test $TARGET --manifest-path rand_xorshift/Cargo.toml --features=serde1
50+
$CARGO test $TARGET --manifest-path rand_xoshiro/Cargo.toml
51+
$CARGO test $TARGET --manifest-path rand_chacha/Cargo.toml
52+
$CARGO test $TARGET --manifest-path rand_hc/Cargo.toml
53+
$CARGO test $TARGET --manifest-path rand_jitter/Cargo.toml
54+
$CARGO test $TARGET --manifest-path rand_os/Cargo.toml
5455
}
5556

5657
# we don't run the "test phase" when doing deploys

0 commit comments

Comments
 (0)