File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -32,14 +32,23 @@ isTagScalaReleaseJob() {
32
32
fi
33
33
}
34
34
35
+ # For tags that define a Scala.js version, we pick the jobs of one Scala.js version (1.0.0) to do the releases
36
+ isTagScalaJsReleaseJob () {
37
+ if [[ " $ADOPTOPENJDK " == " 8" && " $SCALAJS_VERSION " =~ ^1\. 0\. 0(-[A-Za-z0-9-]+)? $ ]]; then
38
+ true
39
+ else
40
+ false
41
+ fi
42
+ }
43
+
35
44
if [[ " $SCALAJS_VERSION " == " " ]]; then
36
45
projectPrefix=" xml"
37
46
else
38
47
projectPrefix=" xmlJS"
39
48
fi
40
49
41
50
verPat=" [0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z0-9-]+)?"
42
- tagPat=" ^v$verPat (#$verPat )?$"
51
+ tagPat=" ^v$verPat (#(sjs_)? $verPat )?$"
43
52
44
53
if [[ " $TRAVIS_TAG " =~ $tagPat ]]; then
45
54
releaseTask=" ci-release"
@@ -49,6 +58,11 @@ if [[ "$TRAVIS_TAG" =~ $tagPat ]]; then
49
58
echo " Not releasing on Java $ADOPTOPENJDK with Scala $TRAVIS_SCALA_VERSION "
50
59
exit 0
51
60
fi
61
+ elif [[ " $tagScalaVer " == " sjs_$SCALAJS_VERSION " ]]; then
62
+ if ! isTagScalaJsReleaseJob; then
63
+ echo " The releases for Scala.js $tagScalaVer are built by other jobs in the travis job matrix"
64
+ exit 0
65
+ fi
52
66
else
53
67
if isTagScalaReleaseJob; then
54
68
setTagScalaVersion=' set every scalaVersion := "' $tagScalaVer ' "'
You can’t perform that action at this time.
0 commit comments