diff --git a/.maintain/ci/build_script.sh b/.maintain/ci/build_script.sh index 071af53e9..b3f8d64e2 100755 --- a/.maintain/ci/build_script.sh +++ b/.maintain/ci/build_script.sh @@ -14,7 +14,7 @@ case $TARGET in # Without WASM "native") # There is some issue to build on ci server with SKIP_WASM_BUILD=1 - cargo build --release --all --locked "$@" + cargo build --all --locked "$@" echo -e "\e[0;32m +-------------+ \n\e[0;32m | Native Pass | \n\e[0;32m +-------------+ \e[0m" ;; diff --git a/.maintain/ci/darwinia_test_script.sh b/.maintain/ci/darwinia_test_script.sh index dcd85e674..29b7ae7e7 100755 --- a/.maintain/ci/darwinia_test_script.sh +++ b/.maintain/ci/darwinia_test_script.sh @@ -15,7 +15,7 @@ case $TARGET in # Without WASM "native") # There is some issue to build on ci server with SKIP_WASM_BUILD=1 - cargo test -p darwinia-${1} + TARGET=native cargo test -p darwinia-${1} echo -e "\e[0;32m +------------+ \n\e[0;32m | ${1} Pass | \n\e[0;32m +------------+ \e[0m" ;; diff --git a/.travis.yml b/.travis.yml index 493b9fa0b..0daa5bd6d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,11 +2,6 @@ language: rust rust: - nightly -cache: - cargo: true - directories: - - target - branches: only: - master @@ -19,12 +14,11 @@ env: before_install: # Check how much space we've got on this machine. - df -h - # TODO: cache the toolchain - rustup target add wasm32-unknown-unknown jobs: include: - - stage: Check + - stage: Check & Prepare script: .maintain/ci/fmt_script.sh - stage: Build @@ -51,10 +45,6 @@ jobs: env: RUST_TOOLCHAIN=nightly TARGET=native script: .maintain/ci/test_script.sh - # clean up cache - - stage: Cleanup - script: cargo clean - after_script: # Check how much free disk space left after the build - df -h