This repository has been archived by the owner on Mar 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
43eae42
commit 9d4137f
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |