Skip to content

Commit

Permalink
merge from master and resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
hackfisher committed Jul 29, 2019
2 parents a2451a7 + 4ec2fbe commit a9e4230
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
19 changes: 12 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,30 @@
sudo: true
language: minimal

cache: cargo
cache:
cargo: true
directories:
- $HOME/build/darwinia-network/darwinia/node/runtime/wasm/target/wasm32-unknown-unknown/release

branches:
only:
- master
- master

env:
global:
- RUST_BACKTRACE=1
matrix:
- RUST_TOOLCHAIN=nightly TARGET=wasm
- RUST_TOOLCHAIN=stable TARGET=native

before_install:
# Check how much space we've got on this machine.
- df -h
- ls $HOME/build/darwinia-network/darwinia/node/runtime/wasm/target/wasm32-unknown-unknown/release

script:
- ./ci/script.sh
jobs:
include:
- stage: Install
script: ./ci/script.sh nightly wasm
- stage: Test
script: ./ci/script.sh stable native

after_script:
# Check how much free disk space left after the build
Expand Down
8 changes: 4 additions & 4 deletions ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -eux

# Install rustup and the specified rust toolchain.
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=$RUST_TOOLCHAIN -y
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=$1 -y

# Load cargo environment. Specifically, put cargo into PATH.
source ~/.cargo/env
Expand All @@ -12,17 +12,17 @@ rustc --version
rustup --version
cargo --version

case $TARGET in
case $2 in
"native")
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

0 comments on commit a9e4230

Please sign in to comment.