forked from godwokenrises/godwoken-kicker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request godwokenrises#1 from TheWaWaR/setup-ci
Setup CI
- Loading branch information
Showing
12 changed files
with
959 additions
and
9 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 |
---|---|---|
|
@@ -53,3 +53,4 @@ dkms.conf | |
|
||
build/ | ||
target/ | ||
integration-test/ |
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,15 @@ | ||
language: rust | ||
rust: | ||
- stable | ||
before_script: | ||
- rustup component add rustfmt | ||
- rustup component add clippy | ||
- cargo install moleculec | ||
stages: | ||
- Test | ||
jobs: | ||
include: | ||
- stage: Test | ||
name: Integration-Test | ||
script: | ||
- bash devtools/ci/integration-test.sh |
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
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
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,28 @@ | ||
|
||
set -x | ||
set -e | ||
|
||
SCRIPT_DIR=$(realpath $(dirname $0)) | ||
PROJECT_ROOT=$(dirname $(dirname $SCRIPT_DIR)) | ||
TESTS_DIR=$PROJECT_ROOT/polyjuice-tests | ||
DEPS_DIR=$PROJECT_ROOT/integration-test | ||
GODWOKEN_DIR=$DEPS_DIR/godwoken | ||
|
||
mkdir -p $DEPS_DIR | ||
if [ -d "$GODWOKEN_DIR" ] | ||
then | ||
echo "godwoken project already exists" | ||
else | ||
git clone https://github.com/nervosnetwork/godwoken.git $GODWOKEN_DIR | ||
fi | ||
|
||
mkdir -p $GODWOKEN_DIR/c/build | ||
cp $SCRIPT_DIR/*generator $SCRIPT_DIR/*validator $GODWOKEN_DIR/c/build | ||
|
||
cd $PROJECT_ROOT | ||
git submodule update --init --recursive | ||
make all-via-docker | ||
|
||
cd $TESTS_DIR | ||
export RUST_BACKTRACE=full | ||
cargo test -- --nocapture |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.