Run sbt-pgp-coursier tests in their own job

This commit is contained in:
Alexandre Archambault 2018-09-28 18:31:16 +02:00
parent 3e05d920a4
commit 0d161be94d
2 changed files with 13 additions and 3 deletions

View File

@ -8,6 +8,7 @@ matrix:
include:
- env: SBT_COURSIER=1
- env: SBT_SHADING=1
- env: SBT_PGP_COURSIER=1
branches:
only:
- master

View File

@ -7,20 +7,27 @@ downloadInstallSbtExtras() {
chmod +x bin/sbt
}
sbtPgpCoursier() {
[ "${SBT_PGP_COURSIER:-""}" = 1 ]
}
sbtShading() {
[ "${SBT_SHADING:-""}" = 1 ]
}
runSbtCoursierTests() {
addPgpKeys
./scripts/with-test-repo.sh sbt ++$TRAVIS_SCALA_VERSION sbt-coursier/scripted
sbt ++$TRAVIS_SCALA_VERSION sbt-pgp-coursier/scripted
./scripts/with-test-repo.sh sbt ++$TRAVIS_SCALA_VERSION sbt-coursier/test sbt-coursier/scripted
}
runSbtShadingTests() {
sbt ++$TRAVIS_SCALA_VERSION sbt-shading/scripted
}
runSbtPgpCoursierTests() {
addPgpKeys
sbt ++$TRAVIS_SCALA_VERSION sbt-pgp-coursier/scripted
}
addPgpKeys() {
for key in b41f2bce 9fa47a44 ae548ced b4493b94 53a97466 36ee59d9 dc426429 3b80305d 69e0a56c fdd5c0cd 35543c27 70173ee5 111557de 39c263a9; do
gpg --keyserver keyserver.ubuntu.com --recv "$key"
@ -32,6 +39,8 @@ downloadInstallSbtExtras
if sbtShading; then
runSbtShadingTests
elif sbtPgpCoursier; then
runSbtPgpCoursierTests
else
runSbtCoursierTests
fi