Merge pull request #218 from alexarchambault/topic/ci-scripted

Enable SBT scripted tests on CI
This commit is contained in:
Alexandre Archambault 2016-04-07 09:18:53 +02:00
commit c22ba8ba6a
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