11language : rust
2-
3- rust :
4- - stable
5- - beta
6- - nightly
7-
8- script :
9- - cargo build --verbose --all
10- - cargo test --verbose --all
11-
12- env :
13- # This is used to only capture the regular nightly test in allow_failures
14- - REGULAR_TEST=true
15-
2+ rust : stable
163cache : cargo
174
185matrix :
196 fast_finish : true
207 include :
8+ - name : rust unittests and doctests
9+ language : rust
10+ rust : stable
11+ cache : cargo
12+ script :
13+ - cargo build --verbose --all
14+ - cargo test --verbose --all
15+
2116 # To test the snippets, we use Travis' Python environment (because
2217 # installing rust ourselves is a lot easier than installing Python)
23- - language : python
18+ - name : python test snippets
19+ language : python
2420 python : 3.6
2521 cache :
2622 pip : true
@@ -31,21 +27,6 @@ matrix:
3127 - target
3228 env :
3329 - TRAVIS_RUST_VERSION=stable
34- - REGULAR_TEST=false
35- - CODE_COVERAGE=false
36- script : tests/.travis-runner.sh
37- - language : python
38- python : 3.6
39- cache :
40- pip : true
41- # Because we're using the Python Travis environment, we can't use
42- # the built-in cargo cacher
43- directories :
44- - /home/travis/.cargo
45- - target
46- env :
47- - TRAVIS_RUST_VERSION=beta
48- - REGULAR_TEST=false
4930 - CODE_COVERAGE=false
5031 script : tests/.travis-runner.sh
5132 - name : rustfmt
@@ -61,8 +42,6 @@ matrix:
6142 # creates.)
6243 - echo > parser/src/python.rs
6344 - cargo fmt --all -- --check
64- env :
65- - REGULAR_TEST=false
6645 - name : publish documentation
6746 language : rust
6847 rust : stable
@@ -71,11 +50,10 @@ matrix:
7150 - cargo doc --no-deps --all
7251 if : branch = release
7352 env :
74- - REGULAR_TEST=false
7553 - DEPLOY_DOC=true
7654 - name : WASM online demo
7755 language : rust
78- rust : nightly
56+ rust : stable
7957 cache : cargo
8058 install :
8159 - nvm install node
@@ -87,7 +65,6 @@ matrix:
8765 - npm run dist
8866 if : branch = release
8967 env :
90- - REGULAR_TEST=false
9168 - DEPLOY_DEMO=true
9269 - name : cargo-clippy
9370 language : rust
@@ -97,8 +74,6 @@ matrix:
9774 - rustup component add clippy
9875 script :
9976 - cargo clippy
100- env :
101- - REGULAR_TEST=true
10277 - name : Code Coverage
10378 language : python
10479 python : 3.6
@@ -111,9 +86,10 @@ matrix:
11186 - target
11287 script :
11388 - tests/.travis-runner.sh
89+ # Only do code coverage on master via a cron job.
90+ if : branch = master AND type = cron
11491 env :
11592 - TRAVIS_RUST_VERSION=nightly
116- - REGULAR_TEST=false
11793 - CODE_COVERAGE=true
11894 - name : test WASM
11995 language : python
@@ -133,11 +109,8 @@ matrix:
133109 script :
134110 - wasm/tests/.travis-runner.sh
135111 env :
136- - REGULAR_TEST=true
137112 - TRAVIS_RUST_VERSION=stable
138113 allow_failures :
139- - rust : nightly
140- env : REGULAR_TEST=true
141114 - name : cargo-clippy
142115
143116deploy :
0 commit comments