File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,16 @@ pipeline:
42
42
- git submodule update --init --recursive --jobs 7
43
43
- ./project/scripts/sbt community-build/test
44
44
45
+ test_bootstrapped_java11 :
46
+ group : test
47
+ image : lampepfl/dotty:2019-04-22
48
+ commands :
49
+ - export JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64/"
50
+ - cp -R . /tmp/6/ && cd /tmp/6/
51
+ - ./project/scripts/sbt ";compile ;test"
52
+ # when:
53
+ # event: [ push, tag, deployment ]
54
+
45
55
test_sbt :
46
56
group : test
47
57
image : lampepfl/dotty:2019-04-22
Original file line number Diff line number Diff line change 6
6
7
7
CMD=" ${1:? Missing sbt command} "
8
8
9
+ if [ -z " $JAVA_HOME " ]; then
10
+ SET_JAVA_VERSION=" "
11
+ else
12
+ SET_JAVA_VERSION=" -java-home"
13
+ fi
14
+
9
15
# run sbt with the supplied arg
10
16
sbt -J-Xmx4096m \
11
17
-J-XX:ReservedCodeCacheSize=512m \
12
18
-J-XX:MaxMetaspaceSize=1024m \
13
19
-Ddotty.drone.mem=4096m \
14
20
-Dsbt.ivy.home=/var/cache/drone/ivy2 \
15
21
-no-colors \
22
+ " $SET_JAVA_VERSION " " $JAVA_HOME " \
16
23
" $CMD "
You can’t perform that action at this time.
0 commit comments