1
1
language : rust
2
2
sudo : false
3
- if : branch = master
4
3
5
4
INSTALL_NODE_VIA_NVM : &INSTALL_NODE_VIA_NVM
6
5
- rustup target add wasm32-unknown-unknown
@@ -47,6 +46,7 @@ matrix:
47
46
- npm run run-lint-examples
48
47
addons :
49
48
firefox : latest
49
+ if : branch = master
50
50
51
51
# All examples work
52
52
- rust : nightly
@@ -61,6 +61,7 @@ matrix:
61
61
ln -s ../../node_modules . &&
62
62
./build.sh) || exit 1;
63
63
done
64
+ if : branch = master
64
65
65
66
# The `web-sys` crate's tests pass on nightly.
66
67
- rust : nightly
@@ -71,6 +72,7 @@ matrix:
71
72
script : cargo test --manifest-path crates/web-sys/Cargo.toml
72
73
addons :
73
74
firefox : latest
75
+ if : branch = master
74
76
75
77
# The `js-sys` crate's tests pass on nightly.
76
78
- rust : nightly
@@ -83,6 +85,7 @@ matrix:
83
85
- cargo test -p js-sys --target wasm32-unknown-unknown
84
86
addons :
85
87
firefox : latest
88
+ if : branch = master
86
89
87
90
# Tests pass on nightly using yarn
88
91
- rust : nightly
@@ -93,13 +96,15 @@ matrix:
93
96
- export PATH=$HOME/.yarn/bin:$PATH
94
97
- yarn install --freeze-lockfile
95
98
script : cargo test api::works
99
+ if : branch = master
96
100
97
101
# WebIDL tests pass on nightly
98
102
- rust : nightly
99
103
env : JOB=test-webidl
100
104
before_install : *INSTALL_NODE_VIA_NVM
101
105
install : npm ci --verbose
102
106
script : cargo test --manifest-path crates/webidl/Cargo.toml
107
+ if : branch = master
103
108
104
109
# Dist linux binary
105
110
- rust : nightly
@@ -123,10 +128,12 @@ matrix:
123
128
- rust : stable
124
129
env : JOB=check-stable-cli
125
130
script : cargo check --manifest-path crates/cli/Cargo.toml
131
+ if : branch = master
126
132
# CLI builds on nightly
127
133
- rust : nightly
128
134
env : JOB=check-nightly-cli
129
135
script : cargo check --manifest-path crates/cli/Cargo.toml
136
+ if : branch = master
130
137
131
138
# Build documentation for the gh-pages branch
132
139
- rust : nightly
@@ -148,6 +155,7 @@ matrix:
148
155
github-token : $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
149
156
local-dir : guide/book
150
157
keep-history : false
158
+ if : branch = master
151
159
152
160
notifications :
153
161
email :
0 commit comments