Skip to content

Commit dcc697f

Browse files
committed
Documentation
1 parent 0eb0898 commit dcc697f

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

.drone.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
pipeline:
2+
# TESTS:
23
# We run tests in parallel. Tests run in a copy of the working directory to avoid conflict
34
test_legacy:
45
group: test
@@ -35,8 +36,10 @@ pipeline:
3536
- cp -R . /tmp/4/ && cd /tmp/4/
3637
- ./project/scripts/sbt sbt-dotty/scripted
3738
when:
39+
# sbt scripted tests are slow and don't run on PRs
3840
event: [ push, tag, deployment ]
3941

42+
# DOCUMENTATION:
4043
documentation:
4144
image: lampepfl/dotty:2017-09-05
4245
commands:
@@ -45,6 +48,8 @@ pipeline:
4548
when:
4649
event: push
4750

51+
# PUBLISHING:
52+
# Publishing expect NIGHTLYBUILD or RELEASEBUILD to be set. See dottyVersion in Build.scala
4853
publish_nightly:
4954
image: lampepfl/dotty:2017-09-05
5055
environment:
@@ -84,6 +89,7 @@ pipeline:
8489
event: deployment
8590
environment: sbt_release
8691

92+
# NOTIFICATIONS:
8793
slack:
8894
image: plugins/slack
8995
channel: dotty
@@ -92,5 +98,5 @@ pipeline:
9298
status: [ success, failure ]
9399
event: [ push, tag, deployment ]
94100

95-
101+
# CI runs only for the master branch (including PRs)
96102
branches: master

project/scripts/genDocs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
# Usage:
44
# BOT_PASS=<dotty-bot password> ./genDocs
55

6-
set -e
6+
set -ex
7+
78
# set extended glob, needed for rm everything but x
89
shopt -s extglob
910

project/scripts/sbt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Usage:
44
# ./sbt <cmd>
55

6+
set -ex
7+
68
CMD="$1"
79

810
if [ -z "$CMD" ]; then
@@ -13,7 +15,7 @@ fi
1315
# get the ivy2 cache
1416
ln -s /var/cache/drone/ivy2 "$HOME/.ivy2"
1517

16-
# run sbt with the supplied arg:
18+
# run sbt with the supplied arg
1719
sbt -J-Xmx4096m \
1820
-J-XX:ReservedCodeCacheSize=512m \
1921
-J-XX:MaxMetaspaceSize=1024m \

project/scripts/sbtPublish

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Usage:
44
# SONATYPE_USER=<sonatype user> SONATYPE_PW=<sonatype pw> PGP_PW=<pgp pw> ./sbtPublish <publish cmd>
55

6+
set -ex
7+
68
# Release command:
79
RELEASE_CMD="$1"
810

@@ -30,6 +32,7 @@ CMD="$CMD ;set pgpSecretRing := file(\"/keys/secring.asc\")"
3032
CMD="$CMD ;set pgpPublicRing := file(\"/keys/pubring.asc\")"
3133
CMD="$CMD $RELEASE_CMD"
3234

35+
# run sbt with the supplied arg
3336
sbt -J-Xmx4096m \
3437
-J-XX:ReservedCodeCacheSize=512m \
3538
-J-XX:MaxMetaspaceSize=1024m \

0 commit comments

Comments
 (0)