|
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 |
| - |
9 | 1 | pipeline:
|
10 | 2 | test:
|
11 | 3 | image: lampepfl/dotty:2017-08-30
|
12 | 4 | commands:
|
13 | 5 | - ./project/scripts/sbt "${CI_TEST}"
|
14 |
| - when: |
15 |
| - branch: |
16 |
| - exclude: gh-pages |
17 | 6 |
|
18 | 7 | publish_nightly:
|
19 | 8 | image: lampepfl/dotty:2017-08-30
|
| 9 | + environment: |
| 10 | + - NIGHTLYBUILD=yes |
20 | 11 | commands:
|
21 | 12 | - ./project/scripts/sbt ";clean ;publishLocal" "${CI_PUBLISH}"
|
22 | 13 | - ./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" |
24 | 15 | volumes:
|
25 | 16 | - /home/drone/keys:/keys
|
| 17 | + secrets: [ sonatype_user, sonatype_pw, pgp_pw ] |
26 | 18 | when:
|
27 | 19 | event: deployment
|
28 | 20 | environment: nightly
|
29 | 21 |
|
30 | 22 | publish_release:
|
31 | 23 | image: lampepfl/dotty:2017-08-30
|
| 24 | + environment: |
| 25 | + - RELEASEBUILD=yes |
32 | 26 | commands:
|
33 | 27 | - ./project/scripts/sbt ";clean ;publishLocal" "${CI_PUBLISH}"
|
34 | 28 | - ./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" |
36 | 30 | volumes:
|
37 | 31 | - /home/drone/keys:/keys
|
| 32 | + secrets: [ sonatype_user, sonatype_pw, pgp_pw ] |
38 | 33 | when:
|
39 | 34 | event: deployment
|
40 | 35 | environment: release
|
41 | 36 |
|
42 | 37 | publish_sbt_release:
|
43 | 38 | image: lampepfl/dotty:2017-08-30
|
| 39 | + environment: |
| 40 | + - RELEASEBUILD=yes |
44 | 41 | 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" |
46 | 43 | volumes:
|
47 | 44 | - /home/drone/keys:/keys
|
| 45 | + secrets: [ sonatype_user, sonatype_pw, pgp_pw ] |
48 | 46 | when:
|
49 | 47 | event: deployment
|
50 | 48 | environment: sbt_release
|
51 | 49 |
|
52 | 50 | documentation:
|
53 | 51 | image: lampepfl/dotty:2017-08-30
|
54 | 52 | commands:
|
55 |
| - - ./project/scripts/genDocs "${CI_PUBLISH}" $BOT_PASS |
| 53 | + - ./project/scripts/genDocs "${CI_PUBLISH}" "$BOT_PASS" |
| 54 | + secrets: [ bot_pass ] |
56 | 55 | when:
|
57 |
| - branch: master |
| 56 | + event: push |
58 | 57 |
|
59 | 58 | slack:
|
60 | 59 | image: plugins/slack
|
61 | 60 | channel: dotty
|
| 61 | + secrets: [ slack_webhook ] |
62 | 62 | when:
|
63 |
| - branch: master |
64 |
| - status: changed |
| 63 | + status: [ success, failure ] |
| 64 | + event: [ push, deployment ] |
| 65 | + |
| 66 | +branches: master |
65 | 67 |
|
66 | 68 | matrix:
|
67 | 69 | include:
|
|
0 commit comments