Enable SBT scripted tests on CI

This commit is contained in:
Alexandre Archambault 2016-04-06 22:38:10 +02:00
parent a21ef67c8b
commit e195a96a7f
No known key found for this signature in database
GPG Key ID: 14640A6839C263A9
2 changed files with 11 additions and 2 deletions

View File

@ -17,9 +17,10 @@ install:
build_script:
- sbt ++2.11.8 clean compile coreJVM/publishLocal
- sbt ++2.10.6 clean compile
- sbt ++2.10.6 coreJVM/publishLocal cache/publishLocal # to make the scripted tests happy
test_script:
- sbt ++2.11.8 testsJVM/test # Would node be around for testsJS/test?
- sbt ++2.10.6 testsJVM/test
- sbt ++2.10.6 testsJVM/test plugin/scripted
cache:
- C:\sbt\
- C:\Users\appveyor\.ivy2

View File

@ -32,7 +32,15 @@ function isMasterOrDevelop() {
# TODO Add coverage once https://github.com/scoverage/sbt-scoverage/issues/111 is fixed
SBT_COMMANDS="compile test coreJVM/mimaReportBinaryIssues cache/mimaReportBinaryIssues"
SBT_COMMANDS="compile test"
if echo "$TRAVIS_SCALA_VERSION" | grep -q "^2\.10"; then
SBT_COMMANDS="$SBT_COMMANDS publishLocal" # to make the scripted tests happy
SBT_COMMANDS="$SBT_COMMANDS plugin/scripted"
fi
SBT_COMMANDS="$SBT_COMMANDS coreJVM/mimaReportBinaryIssues cache/mimaReportBinaryIssues"
if isNotPr && publish && isMaster; then
SBT_COMMANDS="$SBT_COMMANDS publish"
fi