diff --git a/.travis.yml b/.travis.yml index f1dce9348..7b475876b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,12 +24,9 @@ before_install: jobs: include: - stage: Install - script: RUST_TOOLCHAIN=nightly TARGET=wasm + script: ./ci/script.sh nightly wasm - stage: Test - script: RUST_TOOLCHAIN=stable TARGET=native - -script: - - ./ci/script.sh + script: ./ci/script.sh stable native after_script: # Check how much free disk space left after the build diff --git a/ci/script.sh b/ci/script.sh index e3f86d316..5d5f1d2c6 100755 --- a/ci/script.sh +++ b/ci/script.sh @@ -17,12 +17,12 @@ case $TARGET in sudo apt-get -y update sudo apt-get install -y cmake pkg-config libssl-dev - cargo test --all --locked "$@" + cargo test --all --locked ;; "wasm") # Install prerequisites and build all wasm projects ./init.sh - ./build.sh --locked "$@" + ./build.sh --locked ;; esac \ No newline at end of file