Skip to content

Commit de07769

Browse files
committed
Tweak travis config
1 parent 28cb007 commit de07769

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
language: rust
22
sudo: false
3-
if: branch = master
43

54
INSTALL_NODE_VIA_NVM: &INSTALL_NODE_VIA_NVM
65
- rustup target add wasm32-unknown-unknown
@@ -47,6 +46,7 @@ matrix:
4746
- npm run run-lint-examples
4847
addons:
4948
firefox: latest
49+
if: branch = master
5050

5151
# All examples work
5252
- rust: nightly
@@ -61,6 +61,7 @@ matrix:
6161
ln -s ../../node_modules . &&
6262
./build.sh) || exit 1;
6363
done
64+
if: branch = master
6465

6566
# The `web-sys` crate's tests pass on nightly.
6667
- rust: nightly
@@ -71,6 +72,7 @@ matrix:
7172
script: cargo test --manifest-path crates/web-sys/Cargo.toml
7273
addons:
7374
firefox: latest
75+
if: branch = master
7476

7577
# The `js-sys` crate's tests pass on nightly.
7678
- rust: nightly
@@ -83,6 +85,7 @@ matrix:
8385
- cargo test -p js-sys --target wasm32-unknown-unknown
8486
addons:
8587
firefox: latest
88+
if: branch = master
8689

8790
# Tests pass on nightly using yarn
8891
- rust: nightly
@@ -93,13 +96,15 @@ matrix:
9396
- export PATH=$HOME/.yarn/bin:$PATH
9497
- yarn install --freeze-lockfile
9598
script: cargo test api::works
99+
if: branch = master
96100

97101
# WebIDL tests pass on nightly
98102
- rust: nightly
99103
env: JOB=test-webidl
100104
before_install: *INSTALL_NODE_VIA_NVM
101105
install: npm ci --verbose
102106
script: cargo test --manifest-path crates/webidl/Cargo.toml
107+
if: branch = master
103108

104109
# Dist linux binary
105110
- rust: nightly
@@ -123,10 +128,12 @@ matrix:
123128
- rust: stable
124129
env: JOB=check-stable-cli
125130
script: cargo check --manifest-path crates/cli/Cargo.toml
131+
if: branch = master
126132
# CLI builds on nightly
127133
- rust: nightly
128134
env: JOB=check-nightly-cli
129135
script: cargo check --manifest-path crates/cli/Cargo.toml
136+
if: branch = master
130137

131138
# Build documentation for the gh-pages branch
132139
- rust: nightly
@@ -148,6 +155,7 @@ matrix:
148155
github-token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
149156
local-dir: guide/book
150157
keep-history: false
158+
if: branch = master
151159

152160
notifications:
153161
email:

0 commit comments

Comments
 (0)