File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,17 @@ pipeline:
6161 when :
6262 event : [ push, tag, deployment ]
6363
64+ test_java11 :
65+ group : test
66+ image : lampepfl/dotty:2019-04-22
67+ commands :
68+ - export JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64/"
69+ - export PATH="$JAVA_HOME:$PATH"
70+ - cp -R . /tmp/6/ && cd /tmp/6/
71+ - ./project/scripts/sbt ";compile ;test"
72+ # when:
73+ # event: [ push, tag, deployment ]
74+
6475 # DOCUMENTATION:
6576 documentation :
6677 image : lampepfl/dotty:2019-04-22
Original file line number Diff line number Diff line change 66
77CMD=" ${1:? Missing sbt command} "
88
9+ if [ -z " $JAVA_HOME " ]; then
10+ SET_JAVA_VERSION=" "
11+ else
12+ SET_JAVA_VERSION=" -java-home $JAVA_HOME "
13+ fi
14+
915# run sbt with the supplied arg
1016sbt -J-Xmx4096m \
1117 -J-XX:ReservedCodeCacheSize=512m \
1218 -J-XX:MaxMetaspaceSize=1024m \
1319 -Ddotty.drone.mem=4096m \
1420 -Dsbt.ivy.home=/var/cache/drone/ivy2 \
1521 -no-colors \
22+ " $SET_JAVA_VERSION " \
1623 " $CMD "
You can’t perform that action at this time.
0 commit comments