Skip to content

Commit

Permalink
Split the tests on Travis into two subsets
Browse files Browse the repository at this point in the history
  • Loading branch information
koute committed May 18, 2019
1 parent f89565b commit 027d4a0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,22 @@ jobs:
- <<: *test
os: linux
rust: nightly-2019-04-30
env: TEST_SUBSET=1

- <<: *test
os: linux
rust: nightly-2019-04-30
env: TEST_SUBSET=2

- <<: *test
os: linux
rust: nightly
env: TEST_SUBSET=1

- <<: *test
os: linux
rust: nightly
env: TEST_SUBSET=2

- <<: *test
os: linux
Expand Down
22 changes: 14 additions & 8 deletions ci/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
set -euo pipefail
IFS=$'\n\t'

TEST_SUBSET=${TEST_SUBSET:-0}

export RUST_BACKTRACE=1

set +e
Expand All @@ -14,14 +16,18 @@ else
fi
set -e

cargo test -p common
if [ "$IS_NIGHTLY" = "1" ]; then
cargo test -p memory-profiler
if [[ "$TEST_SUBSET" == 0 || "$TEST_SUBSET" == 1 ]]; then
cargo test -p common
if [ "$IS_NIGHTLY" = "1" ]; then
cargo test -p memory-profiler
fi
cargo test -p cli-core
cargo test -p server-core
fi
cargo test -p cli-core
cargo test -p server-core

if [ "$IS_NIGHTLY" = "1" ]; then
./ci/build_for_deployment.sh
cargo test -p integration-tests
if [[ "$TEST_SUBSET" == 0 || "$TEST_SUBSET" == 2 ]]; then
if [ "$IS_NIGHTLY" = "1" ]; then
./ci/build_for_deployment.sh
cargo test -p integration-tests
fi
fi

0 comments on commit 027d4a0

Please sign in to comment.