Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add make task to run integration test #412

Merged
merged 1 commit into from Apr 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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