@@ -5,70 +5,12 @@ dist: xenial # GPG stuff breaks on bionic; scala/scala-dev#764
55language :scala
66
77stages :
8- -build
9- -test
10-
11- templates :# this has no effect on travis, it's just a place to put our templates
12- pr-jdk8 :&pr-jdk8
13- if :type = pull_request OR repo != scala/scala
14-
15- cron-jdk17 :&cron-jdk17
16- if :type = cron AND repo = scala/scala
17- env :ADOPTOPENJDK=17
18-
19- build-for-testing :&build-for-testing
20- # pull request validation (w/ bootstrap)
21- # differs from the build that publishes releases / integration builds:
22- # - not using bash script setup, but just the underlying sbt calls
23- # - publishing locally rather than to Artifactory
24- # the bootstrap above is older historically; this way of doing it is newer
25- # and also simpler. we should aim to reduce/eliminate the duplication.
26- stage :build
27- name :build, publishLocal, build again
28- script :
29- -set -e
30- -sbt setupPublishCore generateBuildCharacterPropertiesFile headerCheck publishLocal
31- -STARR=$(sed -n 's/^maven\.version\.number=//p' buildcharacter.properties) && echo $STARR
32- -sbt -Dstarr.version=$STARR setupValidateTest compile
33- workspaces :
34- create :
35- name :bootstrapped
36- paths :
37- # so new STARR will be available
38- -" buildcharacter.properties"
39- -" $HOME/.ivy2/local/org.scala-lang"
40- # so build products built using new STARR are kept
41- -" target"
42- -" project/target"
43- -" project/project/target"
44- -" project/project/project/target"
45- -" dist"
46- -" build"
47-
48- test1 :&test1
49- stage :test
50- name :tests (junit, scalacheck, et al)
51- workspaces :
52- use :bootstrapped
53- script :
54- -set -e
55- -STARR=$(sed -n 's/^maven\.version\.number=//p' buildcharacter.properties) && echo $STARR
56- -sbt -Dstarr.version=$STARR setupValidateTest Test/compile testAll1
57-
58- test2 :&test2
59- stage :test
60- name :tests (partest)
61- workspaces :
62- use :bootstrapped
63- script :
64- -set -e
65- -STARR=$(sed -n 's/^maven\.version\.number=//p' buildcharacter.properties) && echo $STARR
66- -sbt -Dstarr.version=$STARR setupValidateTest testAll2
8+ -name :build
679
6810jobs :
6911include :
7012 -stage :build
71- if :( type= push OR type = api) AND repo = scala/scala# api for manually triggered release builds
13+ if :type!= pull_request AND repo = scala/scalaAND branch = 2.13.x
7214name :publish (bootstrapped) to scala-integration or sonatype
7315script :
7416# see comment in `bootstrap_fun` for details on the procedure
8729 -buildQuick
8830 -triggerScalaDist
8931
90- -<< :*build-for-testing
91- << :*pr-jdk8
92-
93- -<< :*test1
94- << :*pr-jdk8
95-
96- -<< :*test2
97- << :*pr-jdk8
98-
99- -<< :*build-for-testing
100- << :*cron-jdk17
101-
102- -<< :*test1
103- << :*cron-jdk17
104-
105- -<< :*test2
106- << :*cron-jdk17
107-
108- -stage :test
109- name :build library with Scala 3
110- if :type = pull_request OR repo != scala/scala
111- workspaces :
112- use :bootstrapped
113- script :
114- -set -e
115- -STARR=$(sed -n 's/^maven\.version\.number=//p' buildcharacter.properties) && echo $STARR
116- -sbt -Dscala.build.compileWithDotty=true library/compile
117-
118- -name :build benchmarks
119- if :type = pull_request OR repo != scala/scala
120- workspaces :
121- use :bootstrapped
122- script :
123- -set -e
124- -STARR=$(sed -n 's/^maven\.version\.number=//p' buildcharacter.properties) && echo $STARR
125- -sbt bench/Jmh/compile
126-
12732 -stage :build
128- if :type = pull_requestOR type =push
33+ if :type! = pull_requestAND repo =scala/scala AND branch = 2.13.x
12934name :language spec
13035dist :focal
13136language :ruby
@@ -169,10 +74,4 @@ cache:
16974 -$HOME/.rvm
17075
17176notifications :
172- slack :
173- rooms :
174- -typesafe:WoewGgHil2FkdGzJyV3phAhj
175- if :(type = cron OR type = push) AND repo = scala/scala
176- on_success :never
177- on_failure :change
17877webhooks :https://scala-ci.typesafe.com/benchq/webhooks/travis