1
1
version : 2
2
2
3
3
jobs :
4
- " server-test " :
4
+ server-test :
5
5
docker :
6
6
- image : circleci/python:3.6-node-browsers
7
7
- image : cypress/base:10
@@ -11,10 +11,10 @@ jobs:
11
11
- restore_cache :
12
12
key : deps1-{{ .Branch }}-{{ checksum "package-lock.json" }}-{{ checksum "package.json" }}-{{ checksum ".circleci/config.yml" }}
13
13
- run :
14
- name : Install npm packages
14
+ name : 🏗️ Install npm packages
15
15
command : npm ci
16
16
- run :
17
- name : Cypress Install
17
+ name : 🏗️ Cypress Install
18
18
command : |
19
19
$(npm bin)/cypress install
20
20
25
25
- /home/circleci/.cache/Cypress
26
26
27
27
- run :
28
- name : Install requirements
28
+ name : 🏗️ Install requirements
29
29
command : |
30
30
sudo pip install --upgrade virtualenv
31
31
python -m venv venv || virtualenv venv
@@ -35,21 +35,21 @@ jobs:
35
35
pip install -e ./dash-main[dev] --quiet
36
36
37
37
- run :
38
- name : Build
38
+ name : 🏗️ Build
39
39
command : |
40
40
. venv/bin/activate
41
41
npm run private::build:js-test
42
42
npm run private::build:py
43
43
pip install -e .
44
44
45
45
- run :
46
- name : Run tests
46
+ name : đź§Ş Run tests
47
47
command : |
48
48
. venv/bin/activate
49
49
npm run test.server
50
50
51
51
52
- " standalone-test " :
52
+ standalone-test :
53
53
docker :
54
54
- image : circleci/python:3.6.7-node-browsers
55
55
- image : cypress/base:10
@@ -59,10 +59,10 @@ jobs:
59
59
- restore_cache :
60
60
key : deps1-{{ .Branch }}-{{ checksum "package-lock.json" }}-{{ checksum "package.json" }}-{{ checksum ".circleci/config.yml" }}
61
61
- run :
62
- name : Install npm packages
62
+ name : 🏗️ Install npm packages
63
63
command : npm ci
64
64
- run :
65
- name : Cypress Install
65
+ name : 🏗️ Cypress Install
66
66
command : |
67
67
$(npm bin)/cypress install
68
68
@@ -73,14 +73,14 @@ jobs:
73
73
- /home/circleci/.cache/Cypress
74
74
75
75
- run :
76
- name : Run tests
76
+ name : đź§Ş Run tests
77
77
command : |
78
78
rm -rf node_modules/cypress
79
79
80
80
npm run test.standalone
81
81
82
82
83
- " unit-test " :
83
+ unit-test :
84
84
docker :
85
85
- image : circleci/python:3.6-node-browsers
86
86
- image : cypress/base:10
@@ -90,10 +90,10 @@ jobs:
90
90
- restore_cache :
91
91
key : deps1-{{ .Branch }}-{{ checksum "package-lock.json" }}-{{ checksum "package.json" }}-{{ checksum ".circleci/config.yml" }}
92
92
- run :
93
- name : Install npm packages
93
+ name : 🏗️ Install npm packages
94
94
command : npm ci
95
95
- run :
96
- name : Cypress Install
96
+ name : 🏗️ Cypress Install
97
97
command : |
98
98
$(npm bin)/cypress install
99
99
@@ -104,7 +104,7 @@ jobs:
104
104
- /home/circleci/.cache/Cypress
105
105
106
106
- run :
107
- name : Install requirements
107
+ name : 🏗️ Install requirements
108
108
command : |
109
109
sudo pip install --upgrade virtualenv
110
110
python -m venv venv || virtualenv venv
@@ -114,14 +114,14 @@ jobs:
114
114
pip install -e ./dash-main[dev] --quiet
115
115
116
116
- run :
117
- name : Run tests
117
+ name : đź§Ş Run tests
118
118
command : |
119
119
. venv/bin/activate
120
120
npm run build
121
121
npm run test.unit
122
122
123
123
124
- " visual-test " :
124
+ visual-test :
125
125
docker :
126
126
- image : circleci/node:10-browsers
127
127
@@ -132,7 +132,7 @@ jobs:
132
132
key : deps1-{{ .Branch }}-{{ checksum "package-lock.json" }}-{{ checksum "package.json" }}
133
133
134
134
- run :
135
- name : Install package.json
135
+ name : 🏗️ Install package.json
136
136
command : npm ci
137
137
138
138
- save_cache :
@@ -141,31 +141,31 @@ jobs:
141
141
- node_modules
142
142
143
143
- run :
144
- name : Run build:js
144
+ name : 🏗️ Run build:js
145
145
command : npm run private::build:js
146
146
147
147
- run :
148
- name : Run visual tests
148
+ name : đź§Ş Run visual tests
149
149
command : npm run test.visual
150
150
- store_artifacts :
151
151
path : storybook-static
152
152
153
- " node " :
153
+ node :
154
154
docker :
155
155
- image : circleci/python:3.6-node
156
156
157
157
steps :
158
158
- checkout
159
159
160
160
- run :
161
- name : Create virtual env
161
+ name : đź”§ Create virtual env
162
162
command : python -m venv || virtualenv venv
163
163
164
164
- restore_cache :
165
165
key : deps1-{{ .Branch }}-{{ checksum "package-lock.json" }}-{{ checksum "package.json" }}
166
166
167
167
- run :
168
- name : Install package.json
168
+ name : 🏗️ Install package.json
169
169
command : npm ci
170
170
171
171
- save_cache :
@@ -174,20 +174,20 @@ jobs:
174
174
- node_modules
175
175
176
176
- run :
177
- name : Install requirements
177
+ name : 🏗️ Install requirements
178
178
command : |
179
179
. venv/bin/activate
180
180
pip install -r dev-requirements.txt --quiet
181
181
182
182
- run :
183
- name : Run eslint
183
+ name : đź§Ş Run eslint
184
184
command : |
185
185
. venv/bin/activate
186
186
npm run lint
187
187
when : always
188
188
189
189
190
- " python-3.6 " :
190
+ python-3.6 :
191
191
docker :
192
192
- image : circleci/python:3.6-stretch-node-browsers
193
193
@@ -199,12 +199,12 @@ jobs:
199
199
- checkout
200
200
201
201
- run :
202
- name : Inject Percy Environment variables
202
+ name : đź’‰ Inject Percy Environment variables
203
203
command : |
204
204
echo 'export PERCY_TOKEN="$PERCY_PYTHON_TOKEN_V0"' >> $BASH_ENV
205
205
206
206
- run :
207
- name : Install requirements
207
+ name : 🏗️ Install requirements
208
208
command : |
209
209
sudo pip install --upgrade virtualenv
210
210
python -m venv venv || virtualenv venv
@@ -213,22 +213,22 @@ jobs:
213
213
npm ci
214
214
215
215
- run :
216
- name : Install dependencies (dash)
216
+ name : 🏗️ Install dependencies (dash)
217
217
command : |
218
218
. venv/bin/activate
219
219
git clone --depth 1 [email protected] :plotly/dash.git dash-main
220
220
pip install -e ./dash-main[dev,testing] --quiet
221
221
cd dash-main/dash-renderer && npm run build && pip install -e . && cd ../..
222
222
223
223
- run :
224
- name : Install test requirements
224
+ name : 🏗️ Install test requirements
225
225
command : |
226
226
. venv/bin/activate
227
227
npm run build
228
228
pip install -e .
229
229
230
230
- run :
231
- name : ⚙️ run integration test
231
+ name : ⚙️ Run integration test
232
232
command : |
233
233
. venv/bin/activate
234
234
pytest --junitxml=test-reports/dash.xml tests/integration
@@ -245,9 +245,9 @@ workflows:
245
245
version : 2
246
246
build :
247
247
jobs :
248
- - " python-3.6"
249
- - " node"
250
- - " server-test"
251
- - " standalone-test"
252
- - " unit-test"
253
- - " visual-test"
248
+ - python-3.6
249
+ - node
250
+ - server-test
251
+ - standalone-test
252
+ - unit-test
253
+ - visual-test
0 commit comments