Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Commit 01c389d

Browse files
committed
chore(evergreen): add initial evergreen configuration
NODE-884
1 parent 6a85f62 commit 01c389d

File tree

2 files changed

+269
-6
lines changed

2 files changed

+269
-6
lines changed

.evg.yml

Lines changed: 268 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,268 @@
1+
stepback: true
2+
command_type: system
3+
4+
functions:
5+
"fetch source":
6+
- command: git.get_project
7+
params:
8+
directory: "src"
9+
10+
"fetch nodejs":
11+
- command: shell.exec
12+
type: system
13+
params:
14+
script: |
15+
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
16+
export NVM_DIR="$HOME/.nvm"
17+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
18+
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
19+
nvm install --lts=argon
20+
21+
"run tests":
22+
- command: shell.exec
23+
type: system
24+
params:
25+
working_dir: "src"
26+
script: |
27+
export PATH="/opt/mongodbtoolchain/bin:$PATH"
28+
export NVM_DIR="$HOME/.nvm"
29+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
30+
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
31+
32+
npm install
33+
MONGODB_VERSION=${VERSION} MONGODB_ENVIRONMENT=${TOPOLOGY} npm test
34+
35+
pre:
36+
- func: "fetch source"
37+
- func: "fetch nodejs"
38+
39+
tasks:
40+
- name: "test-2.6-standalone"
41+
tags: ["2.6", "standalone"]
42+
commands:
43+
- func: "run tests"
44+
vars:
45+
VERSION: "2.6"
46+
TOPOLOGY: "single"
47+
48+
- name: "test-2.6-replica_set"
49+
tags: ["2.6", "replica_set"]
50+
commands:
51+
- func: "run tests"
52+
vars:
53+
VERSION: "2.6"
54+
TOPOLOGY: "replicaset"
55+
56+
- name: "test-2.6-sharded_cluster"
57+
tags: ["2.6", "sharded_cluster"]
58+
commands:
59+
- func: "run tests"
60+
vars:
61+
VERSION: "2.6"
62+
TOPOLOGY: "sharded"
63+
64+
- name: "test-3.0-standalone"
65+
tags: ["3.0", "standalone"]
66+
commands:
67+
- func: "run tests"
68+
vars:
69+
VERSION: "3.0"
70+
TOPOLOGY: "single"
71+
72+
- name: "test-3.0-replica_set"
73+
tags: ["3.0", "replica_set"]
74+
commands:
75+
- func: "run tests"
76+
vars:
77+
VERSION: "3.0"
78+
TOPOLOGY: "replicaset"
79+
80+
- name: "test-3.0-sharded_cluster"
81+
tags: ["3.0", "sharded_cluster"]
82+
commands:
83+
- func: "run tests"
84+
vars:
85+
VERSION: "3.0"
86+
TOPOLOGY: "sharded"
87+
88+
- name: "test-3.2-standalone"
89+
tags: ["3.2", "standalone"]
90+
commands:
91+
- func: "run tests"
92+
vars:
93+
VERSION: "3.2"
94+
TOPOLOGY: "single"
95+
96+
- name: "test-3.2-replica_set"
97+
tags: ["3.2", "replica_set"]
98+
commands:
99+
- func: "run tests"
100+
vars:
101+
VERSION: "3.2"
102+
TOPOLOGY: "replicaset"
103+
104+
- name: "test-3.2-sharded_cluster"
105+
tags: ["3.2", "sharded_cluster"]
106+
commands:
107+
- func: "run tests"
108+
vars:
109+
VERSION: "3.2"
110+
TOPOLOGY: "sharded"
111+
112+
- name: "test-3.4-standalone"
113+
tags: ["3.4", "standalone"]
114+
commands:
115+
- func: "run tests"
116+
vars:
117+
VERSION: "3.4"
118+
TOPOLOGY: "single"
119+
120+
- name: "test-3.4-replica_set"
121+
tags: ["3.4", "replica_set"]
122+
commands:
123+
- func: "run tests"
124+
vars:
125+
VERSION: "3.4"
126+
TOPOLOGY: "replicaset"
127+
128+
- name: "test-3.4-sharded_cluster"
129+
tags: ["3.4", "sharded_cluster"]
130+
commands:
131+
- func: "run tests"
132+
vars:
133+
VERSION: "3.4"
134+
TOPOLOGY: "sharded"
135+
136+
- name: "test-3.6-standalone"
137+
tags: ["3.6", "standalone"]
138+
commands:
139+
- func: "run tests"
140+
vars:
141+
VERSION: "3.6"
142+
TOPOLOGY: "single"
143+
144+
- name: "test-3.6-replica_set"
145+
tags: ["3.6", "replica_set"]
146+
commands:
147+
- func: "run tests"
148+
vars:
149+
VERSION: "3.6"
150+
TOPOLOGY: "replicaset"
151+
152+
- name: "test-3.6-sharded_cluster"
153+
tags: ["3.6", "sharded_cluster"]
154+
commands:
155+
- func: "run tests"
156+
vars:
157+
VERSION: "3.6"
158+
TOPOLOGY: "sharded"
159+
160+
- name: "test-latest-standalone"
161+
tags: ["latest", "standalone"]
162+
commands:
163+
- func: "run tests"
164+
vars:
165+
VERSION: "latest"
166+
TOPOLOGY: "single"
167+
168+
- name: "test-latest-replica_set"
169+
tags: ["latest", "replica_set"]
170+
commands:
171+
- func: "run tests"
172+
vars:
173+
VERSION: "latest"
174+
TOPOLOGY: "replicaset"
175+
176+
- name: "test-latest-sharded_cluster"
177+
tags: ["latest", "sharded_cluster"]
178+
commands:
179+
- func: "run tests"
180+
vars:
181+
VERSION: "latest"
182+
TOPOLOGY: "sharded"
183+
184+
axes:
185+
- id: versions
186+
display_name: MongoDB Version
187+
values:
188+
- id: "latest"
189+
display_name: "latest"
190+
variables:
191+
VERSION: "latest"
192+
- id: "3.6"
193+
display_name: "3.6"
194+
variables:
195+
VERSION: "3.6"
196+
- id: "3.4"
197+
display_name: "3.4"
198+
variables:
199+
VERSION: "3.4"
200+
- id: "3.2"
201+
display_name: "3.2"
202+
variables:
203+
VERSION: "3.2"
204+
- id: "3.0"
205+
display_name: "3.0"
206+
variables:
207+
VERSION: "3.0"
208+
- id: "2.6"
209+
display_name: "2.6"
210+
variables:
211+
VERSION: "2.6"
212+
- id: os
213+
display_name: OS
214+
values:
215+
- name: os_rhel62
216+
display_name: RHEL 6.2
217+
run_on:
218+
- rhel62-test
219+
- rhel62-build
220+
- rhel62-large
221+
- rhel62-small
222+
- id: os_suse12_zseries
223+
display_name: SUSE 12 Z Series
224+
run_on:
225+
- suse12-zseries-build
226+
- suse12-zseries-test
227+
- id: os_ubuntu1604_arm64
228+
display_name: Ubuntu 16.04 ARM64
229+
run_on:
230+
- ubuntu1604-arm64-large
231+
- ubuntu1604-arm64-small
232+
- id: os_ubuntu1604_power8
233+
display_name: Ubuntu 16.04 Power8
234+
run_on:
235+
- ubuntu1604-power8-build
236+
- ubuntu1604-power8-test
237+
- id: os_windows64
238+
display_name: Win64
239+
run_on:
240+
- windows-64-vs2013-compile
241+
- windows-64-vs2013-test
242+
- windows-64-vs2015-compile
243+
- windows-64-vs2015-test
244+
- windows-64-vs2015-small
245+
- windows-64-vs2015-large
246+
- id: node-version
247+
display_name: "Node.js"
248+
values:
249+
- id: "Argon"
250+
display_name: "Node.js Argon LTS"
251+
variables:
252+
NODE_LTS: "argon"
253+
- id: "Boron"
254+
display_name: "Node.js Boron LTS"
255+
variables:
256+
NODE_LTS: "boron"
257+
258+
buildvariants:
259+
- matrix_name: "tests-all"
260+
matrix_spec: { os: "*", node-version: '*' }
261+
display_name: "${os} ${node-version}"
262+
tasks:
263+
- ".latest"
264+
- ".3.6"
265+
- ".3.4"
266+
- ".3.2"
267+
- ".3.0"
268+
- ".2.6"

test/environments.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,5 @@ module.exports = {
190190
replicaset: ReplicaSetEnvironment,
191191
sharded: ShardedEnvironment,
192192
auth: AuthEnvironment,
193-
snappy: SnappyEnvironment,
194-
195-
// compat for mongo orchestration
196-
server: SingleEnvironment,
197-
replica_set: ReplicaSetEnvironment,
198-
sharded_cluster: ShardedEnvironment
193+
snappy: SnappyEnvironment
199194
};

0 commit comments

Comments
 (0)