Skip to content

Commit 9ef7938

Browse files
committed
Change drone matrix to include variable for publishing
1 parent 40d405b commit 9ef7938

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

.drone.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# - Install [drone-cli](http://readme.drone.io/usage/getting-started-cli/)
44
# - Copy your token from http://dotty-ci.epfl.ch/account (Click SHOW TOKEN)
55
# - (export DRONE_TOKEN=your-token; export DRONE_SERVER=http://dotty-ci.epfl.ch; drone sign lampepfl/dotty)
6+
#
7+
# Please note that the signing can only be done by collaborators.
68

79
pipeline:
810
test:
@@ -12,7 +14,7 @@ pipeline:
1214
- ln -s /var/cache/drone/scala-scala scala-scala
1315
- ln -s /var/cache/drone/ivy2 "$HOME/.ivy2"
1416
- ./scripts/update-scala-library
15-
- sbt -J-Xmx4096m -J-XX:ReservedCodeCacheSize=512m -J-XX:MaxMetaspaceSize=1024m -Ddotty.drone.mem=4096m "${TEST}"
17+
- sbt -J-Xmx4096m -J-XX:ReservedCodeCacheSize=512m -J-XX:MaxMetaspaceSize=1024m -Ddotty.drone.mem=4096m "${CI_TEST}"
1618
when:
1719
branch:
1820
exclude: gh-pages
@@ -21,16 +23,10 @@ pipeline:
2123
image: lampepfl/dotty:24-04-2017
2224
pull: true
2325
commands:
24-
- ./project/scripts/genDocs "${TEST}" $BOT_PASS
26+
- ./project/scripts/genDocs "${CI_PUBLISH}" $BOT_PASS
2527
when:
2628
branch: master
2729

28-
gitter:
29-
image: plugins/gitter
30-
when:
31-
branch: master
32-
status: changed
33-
3430
slack:
3531
image: plugins/slack
3632
channel: dotty
@@ -39,8 +35,12 @@ pipeline:
3935
status: changed
4036

4137
matrix:
42-
TEST:
43-
- dotty-bin-tests/test
44-
- legacyTests
45-
- test
46-
- ;publishLocal ;dotty-bootstrapped/test
38+
include:
39+
- CI_TEST: dotty-bin-tests/test
40+
CI_PUBLISH: true
41+
- CI_TEST: legacyTests
42+
CI_PUBLISH: false
43+
- CI_TEST: test
44+
CI_PUBLISH: false
45+
- CI_TEST: ;publishLocal ;dotty-bootstrapped/test
46+
CI_PUBLISH: false

project/scripts/genDocs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/env bash
22

3-
# Usage: ./genDocs <test variable> <dotty-bot password>
3+
# Usage: ./genDocs <true/false> <dotty-bot password>
44

55
set -e
66
# set extended glob, needed for rm everything but x
77
shopt -s extglob
88

9-
if [ "$1" = ";dotty-compiler/testOnly dotty.tools.dotc.CompilationTests" ]; then
9+
if [ $1 = true ]; then
1010

1111
# make sure that BOT_PASS is set
1212
if [ -z ${2+x} ]; then

0 commit comments

Comments
 (0)