Shuffle around travis builds a bit

This commit is contained in:
Alex Crichton 2018-03-22 21:18:03 -07:00
parent dd83e54b67
commit dc03e6c84a

View File

@ -10,6 +10,8 @@ matrix:
# Tests pass on nightly # Tests pass on nightly
- rust: nightly - rust: nightly
before_install: rustup target add wasm32-unknown-unknown
script: cargo test
# Dist linux binary # Dist linux binary
- env: TARGET=x86_64-unknown-linux-musl DEPLOY=1 - env: TARGET=x86_64-unknown-linux-musl DEPLOY=1
@ -20,7 +22,30 @@ matrix:
- os: osx - os: osx
env: MACOSX_DEPLOYMENT_TARGET=10.7 DEPLOY=1 TARGET=x86_64-apple-darwin env: MACOSX_DEPLOYMENT_TARGET=10.7 DEPLOY=1 TARGET=x86_64-apple-darwin
script: cargo build --manifest-path crates/wasm-bindgen-cli/Cargo.toml --release --target $TARGET script: cargo build --manifest-path crates/wasm-bindgen-cli/Cargo.toml --release --target $TARGET
before_install: brew install yarn --without-node install: true
# We can build the tool on nightly
- rust: nightly
script: cargo install --debug --path crates/wasm-bindgen-cli
# All examples work
- rust: nightly
before_install: rustup target add wasm32-unknown-unknown
script:
- |
(cd examples/hello_world && sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json && ./build.sh)
- |
(cd examples/hello_world/chrome && ./build.sh)
- |
(cd examples/smorgasboard && sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json && ./build.sh)
- |
(cd examples/console_log && sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json && ./build.sh)
- |
(cd examples/math && sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json && ./build.sh)
- |
(cd examples/dom && sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json && ./build.sh)
- |
(cd examples/wasm-in-wasm && sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json && ./build.sh)
install: install:
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash - curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
@ -28,25 +53,6 @@ install:
- nvm install 9 - nvm install 9
- yarn - yarn
script:
- rustup target add wasm32-unknown-unknown
- cargo test
- cargo install --debug --path crates/wasm-bindgen-cli
- |
(cd examples/hello_world && sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json && ./build.sh)
- |
(cd examples/hello_world/chrome && ./build.sh)
- |
(cd examples/smorgasboard && sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json && ./build.sh)
- |
(cd examples/console_log && sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json && ./build.sh)
- |
(cd examples/math && sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json && ./build.sh)
- |
(cd examples/dom && sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json && ./build.sh)
- |
(cd examples/wasm-in-wasm && sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json && ./build.sh)
notifications: notifications:
email: email:
on_success: never on_success: never