Skip to content

Commit f8dce9c

Browse files
committed
Run the CI only on the right module
We previously run the CI tasks on the root module, which aggregates both the JS and JVM modules. This resulted in wasting CPU and duplicating releases on Sonatype (see #43 (comment))
1 parent aa605f7 commit f8dce9c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ env:
1313
- secure: "ggXFZBlzV5ek/rBaE9lrEZlAIfUrv4XDJ4OrP8daMrJxmwkXtoSbcB3z4VgqqWKzAzW89CcU1IiojzDbe/het3xEX4qxdz5Wt05/E+WOgbek528kelwMxq12XRe6xaCVfG+y8OISPgq1q3vKoO/xYGVbK3D6hSD+cjojEXyPpjAfrVSUof06aNPFPQeLX9exgu9zrxkJJm01PbTh19vQk4Ojc++oEmpF7HLD1CF1m7AlW0U2Rba+syivpj9Ray3Z9vu0TnFL06r4TiwZruwcXTLrWUqumFI0r5mhaY6SNH7bqttu+3RPIOdkUGxIeGlkDi3xopt7r2aEkhOKvjRXapW0e/CWmUo1J+NnlIumxrldi4n0iiJGVEvY4Krx/HGZe0wCVTh4vDNOllTGdFmkkxN6WoaHALgj3QNM3XLjvvUu3VcT+QNtsVIvgUDesrtos8zCKczzdhL/d4BMiIg7SFfA33S3vx8BeczLBqddrx+yLSPzfheKrHW7g76EAEyN26vE2/2/GRlMOlG8Lmu8rXBfIPsK9T/ztfE1CxaTW5EsMSrxO2+O/bvAa6DY0R79KkHf7LDI+azzP2NwYx8anM9WlMTp4EbawI/KGZRilWYtJ3Q3y5EQERsrP71W35dKqiBFMPdspS+lTS9hGtso08n7cR2MwTbRjoXVRcWfJ/I="
1414
matrix:
1515
# The empty SCALAJS_VERSION will only compile for the JVM
16-
- SCALAJS_VERSION= ADOPTOPENJDK=8
17-
- SCALAJS_VERSION=0.6.28 ADOPTOPENJDK=8
18-
- SCALAJS_VERSION=1.0.0-M8 ADOPTOPENJDK=8
19-
- SCALAJS_VERSION= ADOPTOPENJDK=11
16+
- SCALAJS_VERSION= ADOPTOPENJDK=8 MODULE=scala-collection-contribJVM
17+
- SCALAJS_VERSION=0.6.28 ADOPTOPENJDK=8 MODULE=scala-collection-contribJS
18+
- SCALAJS_VERSION=1.0.0-M8 ADOPTOPENJDK=8 MODULE=scala-collection-contribJS
19+
- SCALAJS_VERSION= ADOPTOPENJDK=11 MODULE=scala-collection-contribJVM
2020

2121
before_install:
2222
# adding $HOME/.sdkman to cache would create an empty directory, which interferes with the initial installation

admin/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if [[ "$TRAVIS_TAG" =~ $tagPat ]]; then
3333
currentJvmVer=$(java -version 2>&1 | awk -F '"' '/version/ {print $2}' | sed 's/^1\.//' | sed 's/[^0-9].*//')
3434
echo "Releasing $tagVer with Scala $TRAVIS_SCALA_VERSION on Java version $currentJvmVer."
3535

36-
publishTask="publishSigned"
36+
publishTask="$MODULE/publishSigned"
3737

3838
cat admin/gpg.sbt >> project/plugins.sbt
3939
cp admin/publish-settings.sbt .
@@ -45,4 +45,4 @@ if [[ "$TRAVIS_TAG" =~ $tagPat ]]; then
4545
fi
4646
fi
4747

48-
sbt "++$TRAVIS_SCALA_VERSION" "$publishVersion" "clean" "test" "publishLocal" "$publishTask"
48+
sbt "++$TRAVIS_SCALA_VERSION" "$publishVersion" "$MODULE/clean" "$MODULE/test" "$publishTask"

0 commit comments

Comments
 (0)