Skip to content

Commit 90f4014

Browse files
authored
Merge pull request #2077 from ArkEcosystem/develop
Release 2.1.0
2 parents 8a62f55 + 8399caa commit 90f4014

File tree

1,924 files changed

+108096
-96729
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,924 files changed

+108096
-96729
lines changed

.circleci/config.yml

+501-66
Large diffs are not rendered by default.

.circleci/configTemplate.json

+171-84
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,177 @@
11
{
2-
"version": 2,
3-
"jobs": {
4-
"test-node10-0": {
5-
"working_directory": "~/ark-core",
6-
"docker": [
7-
{
8-
"image": "circleci/node:10-browsers"
2+
"version": 2,
3+
"jobs": {
4+
"test-node10-0": {
5+
"working_directory": "~/core",
6+
"environment": {
7+
"CORE_DB_DATABASE": "core_development",
8+
"CORE_DB_USERNAME": "core"
9+
},
10+
"docker": [
11+
{
12+
"image": "circleci/node:10-browsers"
13+
},
14+
{
15+
"image": "postgres:alpine",
16+
"environment": {
17+
"POSTGRES_PASSWORD": "password",
18+
"POSTGRES_DB": "core_development",
19+
"POSTGRES_USER": "core"
20+
}
21+
}
22+
],
23+
"steps": [
24+
"checkout",
25+
{
26+
"run": {
27+
"name": "Apt update",
28+
"command": "sudo sh -c 'echo \"deb http://ftp.debian.org/debian stable main contrib non-free\" >> /etc/apt/sources.list' && sudo apt-get update"
29+
}
30+
},
31+
{
32+
"run": {
33+
"name": "Install xsel & postgresql-client",
34+
"command": "sudo apt-get install -q xsel postgresql-client"
35+
}
36+
},
37+
{
38+
"run": {
39+
"name": "Generate cache key",
40+
"command": "find ./packages/ -name package.json -print0 | sort -z | xargs -r0 echo ./package.json | xargs md5sum | md5sum - > checksum.txt"
41+
}
42+
},
43+
{
44+
"restore_cache": {
45+
"key": "core-node10-{{ checksum \"checksum.txt\" }}-1"
46+
}
47+
},
48+
{
49+
"run": {
50+
"name": "Install and build packages",
51+
"command": "yarn setup"
52+
}
53+
},
54+
{
55+
"save_cache": {
56+
"key": "core-node10-{{ checksum \"checksum.txt\" }}-1",
57+
"paths": []
58+
}
59+
},
60+
{
61+
"run": {
62+
"name": "Create .core/database directory",
63+
"command": "mkdir -p $HOME/.core/database"
64+
}
65+
},
66+
{
67+
"run": {
68+
"name": "Test",
69+
"command": ""
70+
}
71+
},
72+
{
73+
"run": {
74+
"name": "Last 1000 lines of test output",
75+
"when": "on_fail",
76+
"command": "tail -n 1000 test_output.txt"
77+
}
78+
},
79+
{
80+
"run": {
81+
"name": "Codecov",
82+
"command": "./node_modules/.bin/codecov"
83+
}
84+
}
85+
]
986
},
10-
{
11-
"image": "postgres:alpine",
12-
"environment": {
13-
"POSTGRES_PASSWORD": "password",
14-
"POSTGRES_DB": "ark_development",
15-
"POSTGRES_USER": "ark"
16-
}
87+
"test-node11-0": {
88+
"working_directory": "~/core",
89+
"environment": {
90+
"CORE_DB_DATABASE": "core_development",
91+
"CORE_DB_USERNAME": "core"
92+
},
93+
"docker": [
94+
{
95+
"image": "circleci/node:11-browsers"
96+
},
97+
{
98+
"image": "postgres:alpine",
99+
"environment": {
100+
"POSTGRES_PASSWORD": "password",
101+
"POSTGRES_DB": "core_development",
102+
"POSTGRES_USER": "core"
103+
}
104+
}
105+
],
106+
"steps": [
107+
"checkout",
108+
{
109+
"run": {
110+
"name": "Apt update",
111+
"command": "sudo sh -c 'echo \"deb http://ftp.debian.org/debian stable main contrib non-free\" >> /etc/apt/sources.list' && sudo apt-get update"
112+
}
113+
},
114+
{
115+
"run": {
116+
"name": "Install xsel & postgresql-client",
117+
"command": "sudo apt-get install -q xsel postgresql-client"
118+
}
119+
},
120+
{
121+
"run": {
122+
"name": "Generate cache key",
123+
"command": "find ./packages/ -name package.json -print0 | sort -z | xargs -r0 echo ./package.json | xargs md5sum | md5sum - > checksum.txt"
124+
}
125+
},
126+
{
127+
"restore_cache": {
128+
"key": "core-node11-{{ checksum \"checksum.txt\" }}-1"
129+
}
130+
},
131+
{
132+
"run": {
133+
"name": "Install and build packages",
134+
"command": "yarn setup"
135+
}
136+
},
137+
{
138+
"save_cache": {
139+
"key": "core-node11-{{ checksum \"checksum.txt\" }}-1",
140+
"paths": []
141+
}
142+
},
143+
{
144+
"run": {
145+
"name": "Create .core/database directory",
146+
"command": "mkdir -p $HOME/.core/database"
147+
}
148+
},
149+
{
150+
"run": {
151+
"name": "Test",
152+
"command": ""
153+
}
154+
},
155+
{
156+
"run": {
157+
"name": "Last 1000 lines of test output",
158+
"when": "on_fail",
159+
"command": "tail -n 1000 test_output.txt"
160+
}
161+
},
162+
{
163+
"run": {
164+
"name": "Codecov",
165+
"command": "./node_modules/.bin/codecov"
166+
}
167+
}
168+
]
17169
}
18-
],
19-
"steps": [
20-
"checkout",
21-
{
22-
"run": {
23-
"name": "Apt update",
24-
"command": "sudo sh -c 'echo \"deb http://ftp.debian.org/debian stable main contrib non-free\" >> /etc/apt/sources.list' && sudo apt-get update"
25-
}
26-
},
27-
{
28-
"run": {
29-
"name": "Install xsel",
30-
"command": "sudo apt-get install -q xsel"
31-
}
32-
},
33-
{
34-
"run": {
35-
"name": "Generate cache key",
36-
"command": "find ./packages/ -name package.json -print0 | sort -z | xargs -r0 echo ./package.json | xargs md5sum | md5sum - > checksum.txt"
37-
}
38-
},
39-
{
40-
"restore_cache": {
41-
"key": "core-node10-{{ checksum \"checksum.txt\" }}-1"
42-
}
43-
},
44-
{
45-
"run": {
46-
"name": "Install packages",
47-
"command": "yarn"
48-
}
49-
},
50-
{
51-
"save_cache": {
52-
"key": "core-node10-{{ checksum \"checksum.txt\" }}-1",
53-
"paths": []
54-
}
55-
},
56-
{
57-
"run": {
58-
"name": "Create .ark/database directory",
59-
"command": "mkdir -p $HOME/.ark/database"
60-
}
61-
},
62-
{
63-
"run": {
64-
"name": "Test",
65-
"command": "./node_modules/.bin/cross-env ARK_ENV=test ./node_modules/.bin/jest {{TESTPATHS}} --detectOpenHandles --runInBand --forceExit --ci --coverage | tee test_output.txt\n"
66-
}
67-
},
68-
{
69-
"run": {
70-
"name": "Last 1000 lines of test output",
71-
"when": "on_fail",
72-
"command": "tail -n 1000 test_output.txt"
73-
}
74-
},
75-
{
76-
"run": {
77-
"name": "Codecov",
78-
"command": "./node_modules/.bin/codecov"
79-
}
170+
},
171+
"workflows": {
172+
"version": 2,
173+
"build_and_test": {
174+
"jobs": []
80175
}
81-
]
82-
}
83-
},
84-
"workflows": {
85-
"version": 2,
86-
"build_and_test": {
87-
"jobs": []
88176
}
89-
}
90177
}

0 commit comments

Comments
 (0)