Run sbt-shading tests on CI

This commit is contained in:
Alexandre Archambault 2017-01-31 15:23:03 +01:00
parent 5583efffd0
commit 3b102da857
2 changed files with 11 additions and 14 deletions

View File

@ -43,7 +43,7 @@ function isMasterOrDevelop() {
SBT_COMMANDS="compile test it:test"
RUN_SHADING_TESTS=0
RUN_SHADING_TESTS=1
if echo "$TRAVIS_SCALA_VERSION" | grep -q "^2\.10"; then
SBT_COMMANDS="$SBT_COMMANDS publishLocal" # to make the scripted tests happy
@ -68,7 +68,7 @@ if echo "$TRAVIS_SCALA_VERSION" | grep -q "^2\.10"; then
rm -rf jarjar
fi
SBT_COMMANDS="$SBT_COMMANDS sbt-shading/scripted"
SBT_COMMANDS="$SBT_COMMANDS plugin/publishLocal sbt-shading/scripted"
fi
fi

View File

@ -14,15 +14,14 @@ install:
- cmd: SET PATH=C:\sbt\sbt\bin;%JAVA_HOME%\bin;%PATH%
- cmd: SET SBT_OPTS=-XX:MaxPermSize=2g -Xmx4g
- cmd: SET COURSIER_NO_TERM=1
# required by the sbt-shading scripted tests, disabled for now (see below)
# ps: |
# if (!(Test-Path 'C:\Users\appveyor\.m2\repository\org\anarres\jarjar\jarjar-core\1.0.1-coursier-SNAPSHOT')) {
# iex 'git clone https://github.com/alexarchambault/jarjar'
# Set-Location -Path jarjar
# iex 'git checkout 249c8dbb970f8'
# iex './gradlew.bat :jarjar-core:install'
# Set-Location -Path ..
# }
- ps: |
if (!(Test-Path 'C:\Users\appveyor\.m2\repository\org\anarres\jarjar\jarjar-core\1.0.1-coursier-SNAPSHOT')) {
iex 'git clone https://github.com/alexarchambault/jarjar'
Set-Location -Path jarjar
iex 'git checkout 249c8dbb970f8'
iex './gradlew.bat :jarjar-core:install'
Set-Location -Path ..
}
build_script:
- sbt ++2.11.8 clean compile coreJVM/publishLocal http-server/publishLocal
- sbt ++2.10.6 clean compile
@ -31,9 +30,7 @@ test_script:
- ps: Start-Job { & java -jar -noverify C:\projects\coursier\coursier launch -r http://dl.bintray.com/scalaz/releases io.get-coursier:http-server-java7_2.11:1.0.0-SNAPSHOT -- -d /C:/projects/coursier/tests/jvm/src/test/resources/test-repo/http/abc.com -u user -P pass -r realm -v }
- sbt ++2.12.0 testsJVM/test testsJVM/it:test # Would node be around for testsJS/test?
- sbt ++2.11.8 testsJVM/test testsJVM/it:test
- sbt ++2.10.6 testsJVM/test testsJVM/it:test plugin/scripted
# not running the scripted tests of sbt-shading here, as these seem to fail randomly on single core machines
# (which is kind of worrying)
- sbt ++2.10.6 testsJVM/test testsJVM/it:test plugin/scripted plugin/publishLocal sbt-shading/scripted
cache:
- C:\Users\appveyor\.ivy2
- C:\Users\appveyor\.m2