-
Notifications
You must be signed in to change notification settings - Fork 11
/
config.yml
104 lines (94 loc) · 2.68 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
aliases:
- &restore_sbt_cache
key: sbt-cache-{{ checksum "/tmp/scala_version" }}
- &save_sbt_cache
key: sbt-cache-{{ checksum "/tmp/scala_version" }}-{{ epoch }}
paths:
- "~/.ivy2/cache"
- "~/.sbt"
- "~/.cache/coursier"
- &run_cibuild
- checkout
- run: echo "${SCALA_VERSION}" > /tmp/scala_version
- restore_cache: *restore_sbt_cache
- run:
name: Executing cibuild
command: ./scripts/cibuild
- save_cache: *save_sbt_cache
- &run_cipublish
- checkout
- run: echo "${SCALA_VERSION}" > /tmp/scala_version
- restore_cache: *restore_sbt_cache
- run:
name: "Import signing key"
command: |
echo "${GPG_KEY}" | base64 -d > signing_key.asc && \
gpg --batch \
--passphrase "${GPG_PASSPHRASE}" \
--import signing_key.asc
- run:
name: Executing cipublish
command: ./scripts/cipublish
# Build environments
- &openjdk8-scala2_11_12_environment
machine:
image: ubuntu-1604:201903-01
environment:
SCALA_VERSION: 2.11.12
- &openjdk8-scala2_12_8_environment
machine:
image: ubuntu-1604:201903-01
environment:
SCALA_VERSION: 2.12.8
version: 2
workflows:
version: 2
build:
jobs:
- "openjdk8-scala2.11.12":
filters: # required since `openjdk8-scala2.11.12_deploy` has tag filters AND requires `openjdk8-scala2.11.12`
tags:
only:
- /^(.*)$/
- "openjdk8-scala2.12.8":
filters: # required since `openjdk8-scala2.12.8_deploy` has tag filters AND requires `openjdk8-scala2.12.8`
tags:
only:
- /^(.*)$/
- "openjdk8-scala2.11.12_deploy":
requires:
- "openjdk8-scala2.11.12"
filters:
tags:
only:
- /^(.*)$/
branches:
only:
- develop
- /release\/.*/
- /hotfix\/.*/
- "openjdk8-scala2.12.8_deploy":
requires:
- "openjdk8-scala2.12.8"
filters:
tags:
only:
- /^(.*)$/
branches:
only:
- develop
- /release\/.*/
- /hotfix\/.*/
jobs:
"openjdk8-scala2.11.12":
<<: *openjdk8-scala2_11_12_environment
steps: *run_cibuild
"openjdk8-scala2.12.8":
<<: *openjdk8-scala2_12_8_environment
steps: *run_cibuild
"openjdk8-scala2.11.12_deploy":
<<: *openjdk8-scala2_11_12_environment
steps: *run_cipublish
"openjdk8-scala2.12.8_deploy":
<<: *openjdk8-scala2_12_8_environment
steps: *run_cipublish