Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
add test ci file
Browse files Browse the repository at this point in the history
  • Loading branch information
hackfisher committed Mar 26, 2020
1 parent 43eae42 commit 9d4137f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .maintain/ci/darwinia_test_script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env bash
echo -e "Test Darwinia ${1} ..."

set -eux

rustup default $RUST_TOOLCHAIN

source ~/.cargo/env

rustup --version
cargo --version
rustc --version

case $TARGET in
# Without WASM
"native")
# There is some issue to build on ci server with SKIP_WASM_BUILD=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"
;;

# With WASM
"wasm")
WASM_BUILD_TYPE=release cargo test -p darwinia-${1}
echo -e "\e[0;32m +------------+ \n\e[0;32m | ${1} Pass | \n\e[0;32m +------------+ \e[0m"
;;
esac

0 comments on commit 9d4137f

Please sign in to comment.