Skip to content

Commit

Permalink
Travis: break e2e and proptest into separate virtual machines for eac…
Browse files Browse the repository at this point in the history
…h scala

version.
  • Loading branch information
thesamet committed Jun 11, 2017
1 parent a6fde1b commit 82f74e6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,30 @@ scala:
- 2.11.11
- 2.12.2

env:
- TEST_SCRIPT=e2e.sh
- TEST_SCRIPT=proptest.sh

matrix:
exclude:
- scala: 2.10.6
env: TEST_SCRIPT=e2e.sh
include:
- scala: 2.11.11
env: TEST_SCRIPT=__misc__
script:
- cd examples && sbt test && cd ..
- ./test_generated_code_checked_in.sh
- sbt -J-Xmx4500M ++$TRAVIS_SCALA_VERSION universal:packageBin

# These directories are cached to S3 at the end of the build
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot/

script:
- if [[ $TRAVIS_SCALA_VERSION != 2.10.* ]]; then ./e2e.sh; fi
- cd examples && sbt test && cd ..
- sbt -J-Xmx4500M ++$TRAVIS_SCALA_VERSION test
- sbt -J-Xmx4500M ++$TRAVIS_SCALA_VERSION universal:packageBin

- ./test_generated_code_checked_in.sh

- ./$TEST_SCRIPT
# Tricks to avoid unnecessary cache updates
- find $HOME/.sbt -name "*.lock" | xargs rm
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm
Expand All @@ -35,4 +45,5 @@ deploy:
repo: scalapb/ScalaPB
tags: true
scala: 2.11.11
condition: "$TEST_SCRIPT = __misc__"

3 changes: 3 additions & 0 deletions proptest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh
set -e
sbt -J-Xmx4500M ++$TRAVIS_SCALA_VERSION test

0 comments on commit 82f74e6

Please sign in to comment.