forked from ponylang/ponyc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
175 lines (122 loc) · 4.38 KB
/
.cirrus.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
#
# Nightly build tasks
#
task:
only_if: $CIRRUS_API_CREATED == "true"
container:
image: ponylang/ponyc-ci-x86-64-unknown-linux-gnu-builder:20191105
cpu: 8
memory: 24
name: "nightly: x86-64-unknown-linux-gnu"
environment:
CLOUDSMITH_API_KEY: ENCRYPTED[!2cb1e71c189cabf043ac3a9030b3c7708f9c4c983c86d07372ae58ad246a07c54e40810d038d31c3cf3ed8888350caca!]
nightly_script:
- bash .ci-scripts/x86-64-unknown-linux-gnu-nightly.bash ${CLOUDSMITH_API_KEY}
task:
only_if: $CIRRUS_API_CREATED == "true"
container:
image: ponylang/ponyc-ci-x86-64-unknown-linux-musl-builder:20191105
cpu: 8
memory: 24
name: "nightly: x86-64-unknown-linux-musl"
environment:
CLOUDSMITH_API_KEY: ENCRYPTED[!2cb1e71c189cabf043ac3a9030b3c7708f9c4c983c86d07372ae58ad246a07c54e40810d038d31c3cf3ed8888350caca!]
nightly_script:
- bash .ci-scripts/x86-64-unknown-linux-musl-nightly.bash ${CLOUDSMITH_API_KEY}
task:
only_if: $CIRRUS_API_CREATED == "true"
osx_instance:
image: mojave-xcode-11.2.1
name: "nightly: x86-64-apple-darwin"
environment:
CLOUDSMITH_API_KEY: ENCRYPTED[!2cb1e71c189cabf043ac3a9030b3c7708f9c4c983c86d07372ae58ad246a07c54e40810d038d31c3cf3ed8888350caca!]
install_script:
- brew install coreutils python
- pip3 install --upgrade cloudsmith-cli
nightly_script:
- export TZ=utc
- bash .ci-scripts/x86-64-apple-darwin-nightly.bash ${CLOUDSMITH_API_KEY}
#
# Release build tasks
#
task:
only_if: $CIRRUS_TAG =~ '^\d+\.\d+\.\d+$'
container:
image: ponylang/ponyc-ci-x86-64-unknown-linux-gnu-builder:20191105
cpu: 8
memory: 24
name: "release: x86-64-unknown-linux-gnu"
environment:
CLOUDSMITH_API_KEY: ENCRYPTED[!2cb1e71c189cabf043ac3a9030b3c7708f9c4c983c86d07372ae58ad246a07c54e40810d038d31c3cf3ed8888350caca!]
release_script:
- bash .ci-scripts/x86-64-unknown-linux-gnu-release.bash ${CLOUDSMITH_API_KEY}
task:
only_if: $CIRRUS_TAG =~ '^\d+\.\d+\.\d+$'
container:
image: ponylang/ponyc-ci-x86-64-unknown-linux-musl-builder:20191105
cpu: 8
memory: 24
name: "release: x86-64-unknown-linux-musl"
environment:
CLOUDSMITH_API_KEY: ENCRYPTED[!2cb1e71c189cabf043ac3a9030b3c7708f9c4c983c86d07372ae58ad246a07c54e40810d038d31c3cf3ed8888350caca!]
release_script:
- bash .ci-scripts/x86-64-unknown-linux-musl-release.bash ${CLOUDSMITH_API_KEY}
task:
only_if: $CIRRUS_TAG =~ '^\d+\.\d+\.\d+$'
osx_instance:
image: mojave-xcode-11.2.1
name: "release: x86-64-apple-darwin"
environment:
CLOUDSMITH_API_KEY: ENCRYPTED[!2cb1e71c189cabf043ac3a9030b3c7708f9c4c983c86d07372ae58ad246a07c54e40810d038d31c3cf3ed8888350caca!]
install_script:
- brew install coreutils python
- pip3 install --upgrade cloudsmith-cli
release_script:
- bash .ci-scripts/x86-64-apple-darwin-release.bash ${CLOUDSMITH_API_KEY}
#
# Pull Request Tasks
#
task:
only_if: $CIRRUS_PR != ''
container:
image: ponylang/ponyc-ci-x86-64-unknown-linux-gnu-builder:20191105
cpu: 8
memory: 24
name: "PR: x86-64-unknown-linux-gnu"
test_script:
- make -f Makefile-lib-llvm default_pic=true arch=x86-64 config=release -j8
- make -f Makefile-lib-llvm default_pic=true arch=x86-64 config=release test-ci
task:
only_if: $CIRRUS_PR != ''
container:
image: ponylang/ponyc-ci-x86-64-unknown-linux-musl-builder:20191105
cpu: 8
memory: 24
name: "PR: x86-64-unknown-linux-musl"
test_script:
- make -f Makefile-lib-llvm default_pic=true arch=x86-64 config=release link=static -j8
- make -f Makefile-lib-llvm default_pic=true arch=x86-64 config=release link=static test-ci
task:
only_if: $CIRRUS_PR != ''
freebsd_instance:
image: freebsd-12-0-release-amd64
cpu: 8
memory: 24
name: "PR: x86-64-unknown-freebsd12.0"
install_script:
- echo "FETCH_RETRY = 6" >> /usr/local/etc/pkg.conf
- pkg update
- pkg install -y cmake gmake libunwind git
test_script:
- gmake -f Makefile-lib-llvm default_pic=true arch=x86-64 config=release -j8
- gmake -f Makefile-lib-llvm default_pic=true arch=x86-64 config=release test-ci
task:
only_if: $CIRRUS_PR != ''
osx_instance:
image: mojave-xcode-11.2.1
name: "PR: x86-64-apple-darwin"
install_script:
- brew install coreutils
test_script:
- make -f Makefile-lib-llvm default_pic=true arch=x86-64 config=release -j8
- make -f Makefile-lib-llvm default_pic=true arch=x86-64 config=release test-ci