Skip to content

Commit

Permalink
Tweak travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Jul 26, 2018
1 parent 9a0470b commit ba6460d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: rust
sudo: false
if: branch = master

INSTALL_NODE_VIA_NVM: &INSTALL_NODE_VIA_NVM
- rustup target add wasm32-unknown-unknown
Expand Down Expand Up @@ -47,6 +46,7 @@ matrix:
- npm run run-lint-examples
addons:
firefox: latest
if: branch = master

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

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

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

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

# WebIDL tests pass on nightly
- rust: nightly
env: JOB=test-webidl
before_install: *INSTALL_NODE_VIA_NVM
install: npm ci --verbose
script: cargo test --manifest-path crates/webidl/Cargo.toml
if: branch = master

# Dist linux binary
- rust: nightly
Expand All @@ -123,10 +128,12 @@ matrix:
- rust: stable
env: JOB=check-stable-cli
script: cargo check --manifest-path crates/cli/Cargo.toml
if: branch = master
# CLI builds on nightly
- rust: nightly
env: JOB=check-nightly-cli
script: cargo check --manifest-path crates/cli/Cargo.toml
if: branch = master

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

notifications:
email:
Expand Down

0 comments on commit ba6460d

Please sign in to comment.