Skip to content

Commit a84bcf5

Browse files
authored
Merge pull request #3049 from allanrenucci/drone0.8
Upgrade Drone to 0.8
2 parents 8ca8cd9 + 796bcf8 commit a84bcf5

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

.drone.yml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,69 @@
1-
# After updating this file, you need to re-sign it:
2-
#
3-
# - Install [drone-cli](http://readme.drone.io/usage/getting-started-cli/)
4-
# - Copy your token from http://dotty-ci.epfl.ch/account (Click SHOW TOKEN)
5-
# - DRONE_TOKEN=your-token DRONE_SERVER=http://dotty-ci.epfl.ch drone sign lampepfl/dotty
6-
#
7-
# Please note that the signing can only be done by collaborators.
8-
91
pipeline:
102
test:
113
image: lampepfl/dotty:2017-08-30
124
commands:
135
- ./project/scripts/sbt "${CI_TEST}"
14-
when:
15-
branch:
16-
exclude: gh-pages
176

187
publish_nightly:
198
image: lampepfl/dotty:2017-08-30
9+
environment:
10+
- NIGHTLYBUILD=yes
2011
commands:
2112
- ./project/scripts/sbt ";clean ;publishLocal" "${CI_PUBLISH}"
2213
- ./project/scripts/sbt "sbt-dotty/scripted source-dependencies/*" "${CI_PUBLISH}"
23-
- NIGHTLYBUILD="yes" ./project/scripts/sbtPublish ${CI_PUBLISH} $SONATYPE_USER $SONATYPE_PW $PGP_PW ";dotty-bootstrapped/publishSigned ;sonatypeRelease"
14+
- ./project/scripts/sbtPublish "${CI_PUBLISH}" "$SONATYPE_USER" "$SONATYPE_PW" "$PGP_PW" ";dotty-bootstrapped/publishSigned ;sonatypeRelease"
2415
volumes:
2516
- /home/drone/keys:/keys
17+
secrets: [ sonatype_user, sonatype_pw, pgp_pw ]
2618
when:
2719
event: deployment
2820
environment: nightly
2921

3022
publish_release:
3123
image: lampepfl/dotty:2017-08-30
24+
environment:
25+
- RELEASEBUILD=yes
3226
commands:
3327
- ./project/scripts/sbt ";clean ;publishLocal" "${CI_PUBLISH}"
3428
- ./project/scripts/sbt "sbt-dotty/scripted source-dependencies/*" "${CI_PUBLISH}"
35-
- RELEASEBUILD="yes" ./project/scripts/sbtPublish ${CI_PUBLISH} $SONATYPE_USER $SONATYPE_PW $PGP_PW ";dotty-bootstrapped/publishSigned ;sonatypeRelease"
29+
- ./project/scripts/sbtPublish "${CI_PUBLISH}" "$SONATYPE_USER" "$SONATYPE_PW" "$PGP_PW" ";dotty-bootstrapped/publishSigned ;sonatypeRelease"
3630
volumes:
3731
- /home/drone/keys:/keys
32+
secrets: [ sonatype_user, sonatype_pw, pgp_pw ]
3833
when:
3934
event: deployment
4035
environment: release
4136

4237
publish_sbt_release:
4338
image: lampepfl/dotty:2017-08-30
39+
environment:
40+
- RELEASEBUILD=yes
4441
commands:
45-
- RELEASEBUILD="yes" ./project/scripts/sbtPublish ${CI_PUBLISH} $SONATYPE_USER $SONATYPE_PW $PGP_PW ";sbt-dotty/publishSigned ;sonatypeRelease"
42+
- ./project/scripts/sbtPublish "${CI_PUBLISH}" "$SONATYPE_USER" "$SONATYPE_PW" "$PGP_PW" ";sbt-dotty/publishSigned ;sonatypeRelease"
4643
volumes:
4744
- /home/drone/keys:/keys
45+
secrets: [ sonatype_user, sonatype_pw, pgp_pw ]
4846
when:
4947
event: deployment
5048
environment: sbt_release
5149

5250
documentation:
5351
image: lampepfl/dotty:2017-08-30
5452
commands:
55-
- ./project/scripts/genDocs "${CI_PUBLISH}" $BOT_PASS
53+
- ./project/scripts/genDocs "${CI_PUBLISH}" "$BOT_PASS"
54+
secrets: [ bot_pass ]
5655
when:
57-
branch: master
56+
event: push
5857

5958
slack:
6059
image: plugins/slack
6160
channel: dotty
61+
secrets: [ slack_webhook ]
6262
when:
63-
branch: master
64-
status: changed
63+
status: [ success, failure ]
64+
event: [ push, deployment ]
65+
66+
branches: master
6567

6668
matrix:
6769
include:

.drone.yml.sig

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)