Updated travis build again

This commit is contained in:
Sambo Chea 2020-08-20 14:19:35 +07:00
parent 963e48e56f
commit afa4f43eb1

View File

@ -7,14 +7,14 @@ matrix:
include:
# Builds with wasm-pack.
- rust: beta
- rust: stable
env: RUST_BACKTRACE=1
addons:
firefox: latest
chrome: stable
before_script:
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
- (test -x $HOME/.cargo/bin/cargo-generate || cargo install --vers "^0.2" cargo-generate)
- (test -x $HOME/.cargo/bin/cargo-generate || cargo install --vers "0.2.2" cargo-generate)
- cargo install-update -a
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -f
script:
@ -27,11 +27,11 @@ matrix:
- wasm-pack test --chrome --firefox --headless
# Builds on nightly.
- rust: nightly
- rust: stable
env: RUST_BACKTRACE=1
before_script:
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
- (test -x $HOME/.cargo/bin/cargo-generate || cargo install --vers "^0.2" cargo-generate)
- (test -x $HOME/.cargo/bin/cargo-generate || cargo install --vers "0.2.2" cargo-generate)
- cargo install-update -a
- rustup target add wasm32-unknown-unknown
script:
@ -48,7 +48,7 @@ matrix:
- cargo check --target wasm32-unknown-unknown --no-default-features --features "console_error_panic_hook wee_alloc"
# Builds on beta.
- rust: beta
- rust: stable
env: RUST_BACKTRACE=1
before_script:
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)