Skip to content

Commit

Permalink
ci: remove cache
Browse files Browse the repository at this point in the history
- There is bug when using travis cache for rust
  • Loading branch information
yanganto committed Feb 14, 2020
1 parent 5db44e6 commit 1e9cb0f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .maintain/ci/build_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
;;

Expand Down
2 changes: 1 addition & 1 deletion .maintain/ci/darwinia_test_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
;;

Expand Down
19 changes: 13 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@ language: rust
rust:
- nightly

cache:
cargo: true
directories:
- target
# # Rust cache settings
# # reference: https://www.reddit.com/r/rust/comments/dbgril/caching_on_travis_when_building_rust_projects/
# cache:
# directories:
# - /home/travis/.cargo
# - target

# before_cache:
# - rm -rf /home/travis/.cargo/git
# - rm -rf /home/travis/.cargo/registry
# - rm -rf /home/travis/.cargo/bin/wasm-pack

branches:
only:
Expand All @@ -24,7 +31,7 @@ before_install:

jobs:
include:
- stage: Check
- stage: Check & Prepare
script: .maintain/ci/fmt_script.sh

- stage: Build
Expand Down Expand Up @@ -52,7 +59,7 @@ jobs:
script: .maintain/ci/test_script.sh

# clean up cache
- stage: Cleanup
- stage: Clean up
script: cargo clean

after_script:
Expand Down

0 comments on commit 1e9cb0f

Please sign in to comment.