Skip to content

Commit

Permalink
use the official sbt script
Browse files Browse the repository at this point in the history
This is a workaround for Travis CI is using an old cut of sbt-extras, which prevents the use of sbt 1 published on Maven Central.

Ref travis-ci/travis-ci#9816
  • Loading branch information
eed3si9n committed Jul 25, 2018
1 parent 43607b0 commit ecc508e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .travis.yml
Expand Up @@ -44,6 +44,19 @@ env:
- SBT_CMD="scripted tests/*"
- SBT_CMD="repoOverrideTest:scripted dependency-management/*"

before_install:
- export JAVA_OPTS="-server -Dfile.encoding=UTF-8 -Xss2M -Xms1024M -Xmx1024M -XX:ReservedCodeCacheSize=128m"
- export SBT_OPTS="-Dsbt.log.noformat=true"
- export PATH=/usr/bin:$PATH

addons:
apt:
sources:
- sourceline: 'deb https://dl.bintray.com/sbt/debian /'
key_url: 'https://bintray.com/user/downloadSubjectPublicKey?username=sbt'
packages:
- sbt=1.1.6

notifications:
email:
- sbt-dev-bot@googlegroups.com
Expand All @@ -54,7 +67,7 @@ before_script:

script:
# It doesn't need that much memory because compile and run are forked
- sbt -J-XX:ReservedCodeCacheSize=128m -J-Xmx800M -J-Xms800M -J-server "$SBT_CMD"
- sbt "$SBT_CMD"

before_cache:
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
Expand Down

0 comments on commit ecc508e

Please sign in to comment.