Skip to content

Commit 9399a66

Browse files
authored
Merge pull request #2446 from ArkEcosystem/develop
release: 2.3.0
2 parents c104184 + 9f298cd commit 9399a66

File tree

1,019 files changed

+25388
-22992
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,019 files changed

+25388
-22992
lines changed

.circleci/config.yml

+452-208
Large diffs are not rendered by default.

.circleci/configTemplate.json

+339-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,339 @@
11
{
22
"version": 2,
33
"jobs": {
4-
"test-node10-0": {
4+
"test-node10-unit": {
5+
"working_directory": "~/core",
6+
"docker": [
7+
{
8+
"image": "circleci/node:10-browsers"
9+
}
10+
],
11+
"steps": [
12+
"checkout",
13+
{
14+
"run": {
15+
"name": "Apt update",
16+
"command": "sudo sh -c 'echo \"deb http://ftp.debian.org/debian stable main contrib non-free\" >> /etc/apt/sources.list' && sudo apt-get update"
17+
}
18+
},
19+
{
20+
"run": {
21+
"name": "Install xsel",
22+
"command": "sudo apt-get install -q xsel"
23+
}
24+
},
25+
{
26+
"run": {
27+
"name": "Generate cache key",
28+
"command": "find ./packages/ -name package.json -print0 | sort -z | xargs -r0 echo ./package.json | xargs md5sum | md5sum - > checksum.txt"
29+
}
30+
},
31+
{
32+
"restore_cache": {
33+
"key": "core-node10-{{ checksum \"checksum.txt\" }}-unit"
34+
}
35+
},
36+
{
37+
"run": {
38+
"name": "Install and build packages",
39+
"command": "yarn setup"
40+
}
41+
},
42+
{
43+
"save_cache": {
44+
"key": "core-node10-{{ checksum \"checksum.txt\" }}-unit",
45+
"paths": []
46+
}
47+
},
48+
{
49+
"run": {
50+
"name": "Create .core/database directory",
51+
"command": "mkdir -p $HOME/.core/database"
52+
}
53+
},
54+
{
55+
"run": {
56+
"name": "Unit tests",
57+
"command": "cd ~/core && yarn test:unit:coverage --coverageDirectory .coverage/unit/ --maxWorkers=2"
58+
}
59+
},
60+
{
61+
"run": {
62+
"name": "Last 1000 lines of test output",
63+
"when": "on_fail",
64+
"command": "tail -n 1000 test_output.txt"
65+
}
66+
},
67+
{
68+
"run": {
69+
"name": "Lint",
70+
"command": "yarn lint"
71+
}
72+
},
73+
{
74+
"run": {
75+
"name": "Codecov",
76+
"command": "./node_modules/.bin/codecov"
77+
}
78+
}
79+
]
80+
},
81+
"test-node11-unit": {
82+
"working_directory": "~/core",
83+
"docker": [
84+
{
85+
"image": "circleci/node:11-browsers"
86+
}
87+
],
88+
"steps": [
89+
"checkout",
90+
{
91+
"run": {
92+
"name": "Apt update",
93+
"command": "sudo sh -c 'echo \"deb http://ftp.debian.org/debian stable main contrib non-free\" >> /etc/apt/sources.list' && sudo apt-get update"
94+
}
95+
},
96+
{
97+
"run": {
98+
"name": "Install xsel",
99+
"command": "sudo apt-get install -q xsel"
100+
}
101+
},
102+
{
103+
"run": {
104+
"name": "Generate cache key",
105+
"command": "find ./packages/ -name package.json -print0 | sort -z | xargs -r0 echo ./package.json | xargs md5sum | md5sum - > checksum.txt"
106+
}
107+
},
108+
{
109+
"restore_cache": {
110+
"key": "core-node11-{{ checksum \"checksum.txt\" }}-unit"
111+
}
112+
},
113+
{
114+
"run": {
115+
"name": "Install and build packages",
116+
"command": "yarn setup"
117+
}
118+
},
119+
{
120+
"save_cache": {
121+
"key": "core-node11-{{ checksum \"checksum.txt\" }}-unit",
122+
"paths": []
123+
}
124+
},
125+
{
126+
"run": {
127+
"name": "Create .core/database directory",
128+
"command": "mkdir -p $HOME/.core/database"
129+
}
130+
},
131+
{
132+
"run": {
133+
"name": "Unit tests",
134+
"command": "cd ~/core && yarn test:unit:coverage --coverageDirectory .coverage/unit/ --maxWorkers=2"
135+
}
136+
},
137+
{
138+
"run": {
139+
"name": "Last 1000 lines of test output",
140+
"when": "on_fail",
141+
"command": "tail -n 1000 test_output.txt"
142+
}
143+
},
144+
{
145+
"run": {
146+
"name": "Lint",
147+
"command": "yarn lint"
148+
}
149+
},
150+
{
151+
"run": {
152+
"name": "Codecov",
153+
"command": "./node_modules/.bin/codecov"
154+
}
155+
}
156+
]
157+
},
158+
"test-node10-functional": {
159+
"working_directory": "~/core",
160+
"environment": {
161+
"CORE_DB_DATABASE": "core_unitnet",
162+
"CORE_DB_USERNAME": "core"
163+
},
164+
"docker": [
165+
{
166+
"image": "circleci/node:10-browsers"
167+
},
168+
{
169+
"image": "postgres:alpine",
170+
"environment": {
171+
"POSTGRES_PASSWORD": "password",
172+
"POSTGRES_DB": "core_unitnet",
173+
"POSTGRES_USER": "core"
174+
}
175+
}
176+
],
177+
"steps": [
178+
"checkout",
179+
{
180+
"run": {
181+
"name": "Apt update",
182+
"command": "sudo sh -c 'echo \"deb http://ftp.debian.org/debian stable main contrib non-free\" >> /etc/apt/sources.list' && sudo apt-get update"
183+
}
184+
},
185+
{
186+
"run": {
187+
"name": "Install xsel & postgresql-client",
188+
"command": "sudo apt-get install -q xsel postgresql-client"
189+
}
190+
},
191+
{
192+
"run": {
193+
"name": "Generate cache key",
194+
"command": "find ./packages/ -name package.json -print0 | sort -z | xargs -r0 echo ./package.json | xargs md5sum | md5sum - > checksum.txt"
195+
}
196+
},
197+
{
198+
"restore_cache": {
199+
"key": "core-node10-{{ checksum \"checksum.txt\" }}-functional"
200+
}
201+
},
202+
{
203+
"run": {
204+
"name": "Install and build packages",
205+
"command": "yarn setup"
206+
}
207+
},
208+
{
209+
"save_cache": {
210+
"key": "core-node10-{{ checksum \"checksum.txt\" }}-functional",
211+
"paths": []
212+
}
213+
},
214+
{
215+
"run": {
216+
"name": "Create .core/database directory",
217+
"command": "mkdir -p $HOME/.core/database"
218+
}
219+
},
220+
{
221+
"run": {
222+
"name": "Functional tests",
223+
"command": "cd ~/core && yarn test:functional:coverage --coverageDirectory .coverage/functional/"
224+
}
225+
},
226+
{
227+
"run": {
228+
"name": "Last 1000 lines of test output",
229+
"when": "on_fail",
230+
"command": "tail -n 1000 test_output.txt"
231+
}
232+
},
233+
{
234+
"run": {
235+
"name": "Lint",
236+
"command": "yarn lint"
237+
}
238+
},
239+
{
240+
"run": {
241+
"name": "Codecov",
242+
"command": "./node_modules/.bin/codecov"
243+
}
244+
}
245+
]
246+
},
247+
"test-node11-functional": {
248+
"working_directory": "~/core",
249+
"environment": {
250+
"CORE_DB_DATABASE": "core_unitnet",
251+
"CORE_DB_USERNAME": "core"
252+
},
253+
"docker": [
254+
{
255+
"image": "circleci/node:11-browsers"
256+
},
257+
{
258+
"image": "postgres:alpine",
259+
"environment": {
260+
"POSTGRES_PASSWORD": "password",
261+
"POSTGRES_DB": "core_unitnet",
262+
"POSTGRES_USER": "core"
263+
}
264+
}
265+
],
266+
"steps": [
267+
"checkout",
268+
{
269+
"run": {
270+
"name": "Apt update",
271+
"command": "sudo sh -c 'echo \"deb http://ftp.debian.org/debian stable main contrib non-free\" >> /etc/apt/sources.list' && sudo apt-get update"
272+
}
273+
},
274+
{
275+
"run": {
276+
"name": "Install xsel & postgresql-client",
277+
"command": "sudo apt-get install -q xsel postgresql-client"
278+
}
279+
},
280+
{
281+
"run": {
282+
"name": "Generate cache key",
283+
"command": "find ./packages/ -name package.json -print0 | sort -z | xargs -r0 echo ./package.json | xargs md5sum | md5sum - > checksum.txt"
284+
}
285+
},
286+
{
287+
"restore_cache": {
288+
"key": "core-node11-{{ checksum \"checksum.txt\" }}-functional"
289+
}
290+
},
291+
{
292+
"run": {
293+
"name": "Install and build packages",
294+
"command": "yarn setup"
295+
}
296+
},
297+
{
298+
"save_cache": {
299+
"key": "core-node11-{{ checksum \"checksum.txt\" }}-functional",
300+
"paths": []
301+
}
302+
},
303+
{
304+
"run": {
305+
"name": "Create .core/database directory",
306+
"command": "mkdir -p $HOME/.core/database"
307+
}
308+
},
309+
{
310+
"run": {
311+
"name": "Functional tests",
312+
"command": "cd ~/core && yarn test:functional:coverage --coverageDirectory .coverage/functional/"
313+
}
314+
},
315+
{
316+
"run": {
317+
"name": "Last 1000 lines of test output",
318+
"when": "on_fail",
319+
"command": "tail -n 1000 test_output.txt"
320+
}
321+
},
322+
{
323+
"run": {
324+
"name": "Lint",
325+
"command": "yarn lint"
326+
}
327+
},
328+
{
329+
"run": {
330+
"name": "Codecov",
331+
"command": "./node_modules/.bin/codecov"
332+
}
333+
}
334+
]
335+
},
336+
"test-node10-integration-0": {
5337
"working_directory": "~/core",
6338
"environment": {
7339
"CORE_DB_DATABASE": "core_unitnet",
@@ -65,8 +397,8 @@
65397
},
66398
{
67399
"run": {
68-
"name": "Test",
69-
"command": ""
400+
"name": "Unit tests",
401+
"command": "cd ~/core && yarn test:unit:coverage --coverageDirectory .coverage/unit/ --maxWorkers=2"
70402
}
71403
},
72404
{
@@ -90,7 +422,7 @@
90422
}
91423
]
92424
},
93-
"test-node11-0": {
425+
"test-node11-integration-0": {
94426
"working_directory": "~/core",
95427
"environment": {
96428
"CORE_DB_DATABASE": "core_unitnet",
@@ -154,8 +486,8 @@
154486
},
155487
{
156488
"run": {
157-
"name": "Test",
158-
"command": ""
489+
"name": "Unit tests",
490+
"command": "cd ~/core && yarn test:unit:coverage --coverageDirectory .coverage/unit/ --maxWorkers=2"
159491
}
160492
},
161493
{
@@ -183,7 +515,7 @@
183515
"workflows": {
184516
"version": 2,
185517
"build_and_test": {
186-
"jobs": []
518+
"jobs": ["test-node10-integration-0", "test-node11-integration-0"]
187519
}
188520
}
189521
}

0 commit comments

Comments
 (0)