-
-
Notifications
You must be signed in to change notification settings - Fork 579
/
config.yml
246 lines (222 loc) · 7 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
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
version: 2
jobs:
golang_build:
machine:
image: circleci/classic:201711-01
working_directory: ~/go/src/github.com/drud/ddev
environment:
GOPATH: /home/circleci/go
steps:
- run: mkdir -p ~/go/{lib,pkg,src/github.com/drud/ddev}
- checkout
- run:
command: ./.circleci/circle_vm_setup.sh
name: NORMAL Circle VM setup - tools, docker, golang
# Now build using the regular ddev-only technique - this results in a fully clean set of executables.
- run:
command: |
make -s clean linux darwin windows_install
name: Build the ddev executables
- persist_to_workspace:
root: ~/
paths: go
golang_test_nginx_fpm:
machine:
image: circleci/classic:201711-01
working_directory: ~/go/src/github.com/drud/ddev
environment:
GOPATH: /home/circleci/go
DDEV_TEST_WEBSERVER_TYPE: nginx-fpm
steps:
- attach_workspace:
at: ~/
# Run the built-in ddev tests with the executables just built.
- run:
command: ./.circleci/circle_vm_setup.sh
name: Circle VM setup - tools, docker, golang
# Now build using the regular ddev-only technique - this results in a fully clean set of executables.
- run:
command: make -s test
name: ddev tests
no_output_timeout: "40m"
golang_test_apache_fpm:
machine:
image: circleci/classic:201711-01
working_directory: ~/go/src/github.com/drud/ddev
environment:
GOPATH: /home/circleci/go
DDEV_TEST_WEBSERVER_TYPE: apache-fpm
# Experiment with only testing TYPO3 with the apache run.
GOTEST_SHORT: 5
steps:
- attach_workspace:
at: ~/
- run:
command: ./.circleci/circle_vm_setup.sh
name: Circle VM setup - tools, docker, golang
# Now build using the regular ddev-only technique - this results in a fully clean set of executables.
# Run the built-in ddev tests with the executables just built.
- run:
command: make -s test
name: ddev tests
no_output_timeout: "40m"
golang_test_apache_cgi:
machine:
image: circleci/classic:201711-01
working_directory: ~/go/src/github.com/drud/ddev
environment:
GOPATH: /home/circleci/go
DDEV_TEST_WEBSERVER_TYPE: apache-cgi
# Experiment with only testing TYPO3 with the apache run.
GOTEST_SHORT: 5
steps:
- attach_workspace:
at: ~/
- run:
command: ./.circleci/circle_vm_setup.sh
name: Circle VM setup - tools, docker, golang
- run:
command: make -s test
name: ddev tests
no_output_timeout: "40m"
staticrequired:
machine:
image: circleci/classic:201711-01
working_directory: ~/go/src/github.com/drud/ddev
environment:
GOPATH: /home/circleci/go
ARTIFACTS: /artifacts
steps:
- attach_workspace:
at: ~/
# Run the built-in ddev tests with the executables just built.
- run:
command: ./.circleci/circle_vm_setup.sh
name: Circle VM setup - tools, docker, golang
- run:
command: make staticrequired
name: staticrequired
artifacts:
machine:
image: circleci/classic:201711-01
working_directory: ~/go/src/github.com/drud/ddev
environment:
GOPATH: /home/circleci/go
ARTIFACTS: /artifacts
steps:
- attach_workspace:
at: ~/
- run:
command: ./.circleci/generate_artifacts.sh $ARTIFACTS
name: tar/zip up artifacts and make hashes
no_output_timeout: "40m"
- store_artifacts:
path: /artifacts
name: Artifact storage
nightly_build:
machine:
image: circleci/classic:201711-01
working_directory: ~/go/src/github.com/drud/ddev
environment:
DRUD_DEBUG: "true"
GOPATH: /home/circleci/go
ARTIFACTS: /artifacts
steps:
- checkout
- run:
command: ./.circleci/circle_vm_setup.sh
name: NIGHTLY BUILD Circle VM setup - tools, docker, golang
- run:
command: echo "go version:$(go version) docker version=$(docker --version) docker-compose version=$(docker-compose --version) HOME=$HOME USER=$(whoami) PWD=$PWD"
name: Show installed tool versions
- run:
command: |
make -s linux darwin windows_install
name: Build the ddev executables normally, with normal image tags
- run:
command: ./.circleci/generate_artifacts.sh $ARTIFACTS
name: tar/zip up artifacts and make hashes
no_output_timeout: "20m"
- store_artifacts:
path: /artifacts
name: Artifact storage
# Run the built-in ddev tests with the clean binaries just built.
- run:
command: make -s test gometalinter
name: ddev tests, with normal clean ddev binaries (normal image tags)
no_output_timeout: "20m"
- run:
command: |
make -f nightly_build.mak clean # Remove any existing binaries
make -f nightly_build.mak -s --print-directory DOCKER_ARGS=--no-cache
no_output_timeout: "40m"
name: Full nightly build and test with containers
# 'tag_build' is used to build a tag for release.
tag_build:
machine:
image: circleci/classic:201711-01
working_directory: ~/go/src/github.com/drud/ddev
environment:
DRUD_DEBUG: "true"
GOPATH: /home/circleci/go
ARTIFACTS: /artifacts
steps:
- run: mkdir -p ~/go/{lib,pkg,src/github.com/drud/ddev}
- checkout
- run:
command: ./.circleci/circle_vm_setup.sh
name: TAG BUILD Circle VM setup - tools, docker, golang
# Now build using the regular ddev-only technique - this results in a fully clean set of executables.
- run:
command: make -s clean linux darwin windows_install
name: Build the ddev executables
- run:
command: bin/linux/ddev version
name: ddev version information
# We only build the xz version of the docker images on tag build.
- run:
command: ./.circleci/generate_artifacts.sh $ARTIFACTS TRUE
name: tar/zip up artifacts and make hashes
no_output_timeout: "40m"
- store_artifacts:
path: /artifacts
name: Artifact storage
workflows:
version: 2
normal_build_and_test:
jobs:
- golang_build
- golang_test_nginx_fpm:
requires:
- golang_build
- golang_test_apache_fpm:
requires:
- golang_build
- golang_test_apache_cgi:
requires:
- golang_build
- staticrequired:
requires:
- golang_build
- artifacts:
requires:
- golang_build
nightly_build:
triggers:
- schedule:
cron: "0 3 * * 1-5"
filters:
branches:
only:
- master
jobs:
- nightly_build
tag_build:
jobs:
- tag_build:
filters:
tags:
only:
- "/.*/"
branches:
ignore: /.*/