Skip to content

Commit d2bef7e

Browse files
committed
CI tests everywhere, but test the demo just once
1 parent 22103e6 commit d2bef7e

File tree

2 files changed

+14
-20
lines changed

2 files changed

+14
-20
lines changed

.travis.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -71,23 +71,23 @@ matrix:
7171
- cargo build --target $TARGET
7272
if: NOT type = pull_request
7373

74+
# rayon-demo has huge dependencies, so just test it once
75+
- rust: nightly
76+
os: linux
77+
env: DEMO=1
78+
script: cargo test -p rayon-demo
79+
if: NOT type = pull_request
80+
7481

7582
script:
7683
- cargo build
77-
- |
78-
if [ $TRAVIS_RUST_VERSION == nightly ]; then
79-
cargo test -p rayon &&
80-
cargo test -p rayon-core &&
81-
cargo test -p rayon-demo &&
82-
./ci/highlander.sh
83-
fi
84+
- cargo test -p rayon
85+
- cargo test -p rayon-core
86+
- ./ci/highlander.sh
8487
- |
8588
if [ -n "$RUSTFLAGS" ]; then
86-
cargo clean &&
8789
cargo build -p rayon-futures &&
88-
if [ $TRAVIS_RUST_VERSION == nightly ]; then
89-
cargo test -p rayon-futures
90-
fi
90+
cargo test -p rayon-futures
9191
fi
9292
9393
branches:

appveyor.yml

+3-9
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,11 @@ build: false
5252

5353
test_script:
5454
- cargo build
55-
- if [%CHANNEL%]==[nightly] (
56-
cargo test -p rayon &&
57-
cargo test -p rayon-core &&
58-
cargo test -p rayon-demo
59-
)
55+
- cargo test -p rayon
56+
- cargo test -p rayon-core
6057
- if not "%RUSTFLAGS%"=="%^RUSTFLAGS%" (
61-
cargo clean &&
6258
cargo build -p rayon-futures &&
63-
if [%CHANNEL%]==[nightly] (
64-
cargo test -p rayon-futures
65-
)
59+
cargo test -p rayon-futures
6660
)
6761

6862
branches:

0 commit comments

Comments
 (0)