Skip to content

Commit

Permalink
Run only cargo build on OS X and Windows on Travis for now
Browse files Browse the repository at this point in the history
  • Loading branch information
koute committed Aug 20, 2019
1 parent 25374f5 commit 2ddd9bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ jobs:
- <<: *test
os: osx
rust: stable
env: TEST_SUBSET=1
env: BUILD_ONLY=1

- <<: *test
os: windows
rust: stable
env: TEST_SUBSET=1
env: BUILD_ONLY=1

- <<: *test
os: linux
Expand Down
6 changes: 6 additions & 0 deletions ci/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export CARGO_WEB=$REPOSITORY_ROOT/target/debug/cargo-web

TEST_SUBSET=${TEST_SUBSET:-0}
CHECK_ONLY=${CHECK_ONLY:-0}
BUILD_ONLY=${BUILD_ONLY:-0}
WITHOUT_CARGO_LOCK=${WITHOUT_CARGO_LOCK:-0}

ONLY_LOCAL=0
Expand Down Expand Up @@ -49,6 +50,11 @@ if [ "$CHECK_ONLY" == "1" ]; then
fi

cargo build
echo "++ Build was successful!"

if [ "$BUILD_ONLY" == "1" ]; then
exit 0
fi

if [[ "$TEST_SUBSET" == 0 || "$TEST_SUBSET" == 1 ]]; then
cargo test
Expand Down

0 comments on commit 2ddd9bb

Please sign in to comment.