Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
412: chore: add make task to run integration test r=quake a=doitian



Co-authored-by: ian <ian@nervos.org>
  • Loading branch information
bors[bot] and doitian committed Apr 9, 2019
2 parents cbe4a8f + 196e8e2 commit 2f3914e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 9 additions & 0 deletions Makefile
Expand Up @@ -5,6 +5,14 @@ VERBOSE := $(if ${CI},--verbose,)
test:
cargo test ${VERBOSE} --all -- --nocapture

integration:
cargo build ${VERBOSE}
cd test && cargo run ../target/debug/ckb

integration-release:
cargo build ${VERBOSE} --release
cd test && cargo run --release -- ../target/release/ckb

doc:
cargo doc --all --no-deps

Expand Down Expand Up @@ -71,3 +79,4 @@ gen-clean:
.PHONY: build prod prod-test docker gen gen-clean
.PHONY: fmt test clippy doc doc-deps check stats
.PHONY: ci info security-audit
.PHONY: integration integration-release
6 changes: 2 additions & 4 deletions devtools/ci/script.sh
Expand Up @@ -19,10 +19,8 @@ fi
git diff --exit-code Cargo.lock

if [ "$TRAVIS_BRANCH" = master -o "$TRAVIS_BRANCH" = staging -o "$TRAVIS_BRANCH" = trying ]; then
cargo build
cd test && cargo run ../target/debug/ckb
make integration

# Switch to release mode when the running time is much longer than the build time.
# cargo build --release
# cargo run --release -p ckb-test target/release/ckb
# make integration-release
fi

0 comments on commit 2f3914e

Please sign in to comment.