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