/
evergreen.yaml
175 lines (164 loc) · 4.87 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
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/poplar
- 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/poplar
binary: make
args: ["${make_args|}", "${target}"]
env:
GO_BIN_PATH: ${gobin}
DISABLE_COVERAGE: ${disable_coverage}
GOROOT: ${goroot}
GOPATH: ${workdir}/gopath
USERPROFILE: C:\\Users\\Administrator
LDAP_USER: ${ldap_user}
LDAP_PASSWORD: ${ldap_password}
AWS_ACCESS_KEY_ID: ${aws_key}
AWS_SECRET_ACCESS_KEY: ${aws_secret}
#######################################
# Tasks #
#######################################
post:
- command: gotest.parse_files
type: setup
params:
files:
- "gopath/src/github.com/evergreen-ci/poplar/build/output.*"
- "gopath/src/github.com/evergreen-ci/poplar/build/test.out"
- "gopath/src/github.com/evergreen-ci/poplar/build/race.out"
- "gopath/src/github.com/evergreen-ci/poplar/build/cover*"
- command: subprocess.exec
type: setup
params:
command: rm -rf ~/.aws
- command: s3.put
type: system
params:
aws_key: ${aws_s3_key}
aws_secret: ${aws_s3_secret}
local_files_include_filter: ["gopath/src/github.com/evergreen-ci/poplar/build/output.coverage.html"]
remote_file: poplar/${task_id}/
bucket: mciuploads
content_type: text/html
permissions: public-read
display_name: "(html) coverage:"
- command: s3.put
type: system
params:
aws_key: ${aws_s3_key}
aws_secret: ${aws_s3_secret}
local_files_include_filter: ["gopath/src/github.com/evergreen-ci/poplar/build/output.coverage"]
remote_file: poplar/${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/poplar
- 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/poplar
- func: run-make
vars:
target: "coverage-html"
- <<: *run-build
tags: ["test"]
name: test
- <<: *run-build
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.12
gobin: /opt/golang/go1.12/bin/go
run_on:
- archlinux-test
- archlinux-build
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
gobin: /opt/golang/go1.9/bin/go
disable_coverage: true
run_on:
- ubuntu1604-test
- ubuntu1604-build
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
gobin: /opt/golang/go1.9/bin/go
disable_coverage: true
run_on:
- macos-1014
- macos-1014-i7
tasks:
- name: ".test"
- name: windows
display_name: Windows
run_on:
- windows-64-vs2017-test
- windows-64-vs2017-compile
- windows-64-vs2015-test
- windows-64-vs2015-compile
- windows-64-vs2015-small
- windows-64-vs2015-large
expansions:
mongodb_url: https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.1.zip
goroot: c:/golang/go1.9
gobin: /cygdrive/c/golang/go1.9/bin/go
disable_coverage: true
extension: ".exe"
archiveExt: ".zip"
tasks:
- name: ".test"