-
Notifications
You must be signed in to change notification settings - Fork 0
/
evergreen.yaml
194 lines (182 loc) · 5.53 KB
/
evergreen.yaml
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
stepback: false
ignore:
- "*.rst"
#######################################
# YAML Templates #
#######################################
variables:
- &run-build
# runs a build operations. The task name in evergreen should
# correspond to a make target for the build operation.
name: test
commands:
- command: git.get_project
type: system
params:
directory: gopath/src/github.com/evergreen-ci/certdepot
- func: run-make
vars: { target: "${task_name}" }
- &run-build-with-mongodb
# runs a make target above, but only on systems that have a
# running mongod started for testing.
name: test
commands:
- command: git.get_project
type: system
params:
directory: gopath/src/github.com/evergreen-ci/certdepot
- func: set-up-mongodb
- func: run-make
vars: { target: "${task_name}" }
#######################################
# Functions #
#######################################
functions:
run-make:
command: subprocess.exec
type: test
params:
working_dir: gopath/src/github.com/evergreen-ci/certdepot
binary: make
args: ["${make_args|}", "${target}"]
env:
DISABLE_COVERAGE: ${disable_coverage}
GOPATH: ${workdir}/gopath
GOROOT: ${goroot}
GO_BIN_PATH: ${go_bin_path}
set-up-mongodb:
- command: subprocess.exec
type: setup
params:
working_dir: gopath/src/github.com/evergreen-ci/certdepot
env:
MONGODB_URL: ${mongodb_url}
DECOMPRESS: ${decompress}
command: make get-mongodb
- command: subprocess.exec
type: setup
params:
working_dir: gopath/src/github.com/evergreen-ci/certdepot
background: true
command: make start-mongod
- command: subprocess.exec
type: setup
params:
working_dir: gopath/src/github.com/evergreen-ci/certdepot
command: make check-mongod
#######################################
# Tasks #
#######################################
post:
- command: gotest.parse_files
type: setup
params:
files:
- "gopath/src/github.com/evergreen-ci/certdepot/build/output.*"
- "gopath/src/github.com/evergreen-ci/certdepot/build/test.out"
- "gopath/src/github.com/evergreen-ci/certdepot/build/race.out"
- "gopath/src/github.com/evergreen-ci/certdepot/build/cover*"
- command: subprocess.exec
type: setup
params:
command: rm -rf ~/.aws
- command: s3.put
type: system
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
local_files_include_filter: ["gopath/src/github.com/evergreen-ci/certdepot/build/cover.html"]
remote_file: certdepot/${task_id}/
bucket: mciuploads
content_type: text/html
permissions: public-read
display_name: "(html) coverage:"
- command: s3.put
type: system
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
local_files_include_filter: ["gopath/src/github.com/evergreen-ci/certdepot/build/cover.out"]
remote_file: certdepot/${task_id}/
bucket: mciuploads
content_type: text/plain
permissions: public-read
display_name: "(txt) coverage:"
tasks:
# the build (with and without the race detector) and lint tasks use
# a template that does not include test result parsing.
- name: lint
tags: ["report"]
commands:
- command: git.get_project
type: system
params:
directory: gopath/src/github.com/evergreen-ci/certdepot
- func: run-make
vars: { target: "lint" }
- name: coverage
tags: [ "report" ]
commands:
- command: git.get_project
type: system
params:
directory: gopath/src/github.com/evergreen-ci/certdepot
- func: set-up-mongodb
- func: run-make
vars: { target: "coverage-html" }
- <<: *run-build-with-mongodb
tags: ["test"]
name: test
- <<: *run-build-with-mongodb
tags: ["race"]
name: race
#######################################
# Buildvariants #
#######################################
buildvariants:
- name: race-detector
display_name: Race Detector (Arch Linux)
expansions:
mongodb_url: http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-4.0.1.tgz
goroot: /opt/golang/go1.13
go_bin_path: /opt/golang/go1.13/bin/go
run_on:
- archlinux-test
tasks:
- name: ".race"
- name: ".report"
- name: ubuntu1604
display_name: Ubuntu 16.04
expansions:
mongodb_url: http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-4.0.1.tgz
goroot: /opt/golang/go1.9
go_bin_path: /opt/golang/go1.9/bin/go
disable_coverage: true
run_on:
- ubuntu1604-test
tasks:
- name: ".test"
- name: macos
display_name: macOS 10.14
expansions:
mongodb_url: https://fastdl.mongodb.org/osx/mongodb-osx-ssl-x86_64-4.0.1.tgz
goroot: /opt/golang/go1.9
go_bin_path: /opt/golang/go1.9/bin/go
disable_coverage: true
run_on:
- macos-1014
tasks:
- name: ".test"
- name: windows
display_name: Windows
run_on:
- windows-64-vs2015-small
expansions:
mongodb_url: https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.1.zip
goroot: c:/golang/go1.13
go_bin_path: /cygdrive/c/golang/go1.13/bin/go
disable_coverage: true
extension: ".exe"
archiveExt: ".zip"
tasks:
- name: ".test"