1
1
version : 2
2
2
3
3
jobs :
4
- " server-test " :
4
+ server-test :
5
5
docker :
6
6
- image : circleci/python:3.7-node-browsers
7
7
- image : cypress/base:10
@@ -11,15 +11,15 @@ jobs:
11
11
- restore_cache :
12
12
key : dep-{{ .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
- save_cache :
17
17
key : dep-{{ .Branch }}-{{ checksum "package-lock.json" }}-{{ checksum "package.json" }}-{{ checksum ".circleci/config.yml" }}
18
18
paths :
19
19
- node_modules
20
20
21
21
- run :
22
- name : Install requirements
22
+ name : 🏗️ Install requirements
23
23
command : |
24
24
sudo pip install --upgrade virtualenv
25
25
python -m venv venv || virtualenv venv
30
30
cd dash-main/dash-renderer && npm run build && pip install -e . && cd ./../..
31
31
32
32
- run :
33
- name : Build
33
+ name : 🏗️ Build
34
34
command : |
35
35
. venv/bin/activate
36
36
npm run private::build:js-test
@@ -40,13 +40,13 @@ jobs:
40
40
find . -name "*.gz" | xargs pip install --no-cache-dir --ignore-installed && cd ..
41
41
42
42
- run :
43
- name : Run tests
43
+ name : 🧪 Run tests
44
44
command : |
45
45
. venv/bin/activate
46
46
npm run test.server
47
47
48
48
49
- " standalone-test " :
49
+ standalone-test :
50
50
docker :
51
51
- image : circleci/python:3.6.7-node-browsers
52
52
- image : cypress/base:10
@@ -56,10 +56,10 @@ jobs:
56
56
- restore_cache :
57
57
key : dep-{{ .Branch }}-{{ checksum "package-lock.json" }}-{{ checksum "package.json" }}-{{ checksum ".circleci/config.yml" }}
58
58
- run :
59
- name : Install npm packages
59
+ name : 🏗️ Install npm packages
60
60
command : npm ci
61
61
- run :
62
- name : Cypress Install
62
+ name : 🏗️ Cypress Install
63
63
command : |
64
64
$(npm bin)/cypress install
65
65
@@ -70,14 +70,14 @@ jobs:
70
70
- /home/circleci/.cache/Cypress
71
71
72
72
- run :
73
- name : Run tests
73
+ name : 🧪 Run tests
74
74
command : |
75
75
rm -rf node_modules/cypress
76
76
77
77
npm run test.standalone
78
78
79
79
80
- " unit-test " :
80
+ unit-test :
81
81
docker :
82
82
- image : circleci/python:3.7.5-node-browsers
83
83
- image : cypress/base:10
@@ -87,10 +87,10 @@ jobs:
87
87
- restore_cache :
88
88
key : dep-{{ .Branch }}-{{ checksum "package-lock.json" }}-{{ checksum "package.json" }}-{{ checksum ".circleci/config.yml" }}
89
89
- run :
90
- name : Install npm packages
90
+ name : 🏗️ Install npm packages
91
91
command : npm ci
92
92
- run :
93
- name : Cypress Install
93
+ name : 🏗️ Cypress Install
94
94
command : |
95
95
$(npm bin)/cypress install
96
96
@@ -101,7 +101,7 @@ jobs:
101
101
- /home/circleci/.cache/Cypress
102
102
103
103
- run :
104
- name : Install requirements
104
+ name : 🏗️ Install requirements
105
105
command : |
106
106
sudo pip install --upgrade virtualenv
107
107
python -m venv venv || virtualenv venv
@@ -111,14 +111,14 @@ jobs:
111
111
pip install -e ./dash-main[dev] --quiet
112
112
113
113
- run :
114
- name : Run tests
114
+ name : 🧪 Run tests
115
115
command : |
116
116
. venv/bin/activate
117
117
npm run build
118
118
npm run test.unit
119
119
120
120
121
- " visual-test " :
121
+ visual-test :
122
122
docker :
123
123
- image : circleci/node:10-browsers
124
124
@@ -129,7 +129,7 @@ jobs:
129
129
key : dep-{{ .Branch }}-{{ checksum "package-lock.json" }}-{{ checksum "package.json" }}
130
130
131
131
- run :
132
- name : Install package.json
132
+ name : 🏗️ Install package.json
133
133
command : npm ci
134
134
135
135
- save_cache :
@@ -138,31 +138,31 @@ jobs:
138
138
- node_modules
139
139
140
140
- run :
141
- name : Run build:js
141
+ name : 🏗️ Run build:js
142
142
command : npm run private::build:js
143
143
144
144
- run :
145
- name : Run visual tests
145
+ name : 🧪 Run visual tests
146
146
command : npm run test.visual
147
147
- store_artifacts :
148
148
path : storybook-static
149
149
150
- " node " :
150
+ node :
151
151
docker :
152
152
- image : circleci/python:3.7.5-node
153
153
154
154
steps :
155
155
- checkout
156
156
157
157
- run :
158
- name : Create virtual env
158
+ name : 🔧 Create virtual env
159
159
command : python -m venv || virtualenv venv
160
160
161
161
- restore_cache :
162
162
key : dep-{{ .Branch }}-{{ checksum "package-lock.json" }}-{{ checksum "package.json" }}
163
163
164
164
- run :
165
- name : Install package.json
165
+ name : 🏗️ Install package.json
166
166
command : npm ci
167
167
168
168
- save_cache :
@@ -171,20 +171,20 @@ jobs:
171
171
- node_modules
172
172
173
173
- run :
174
- name : Install requirements
174
+ name : 🏗️ Install requirements
175
175
command : |
176
176
. venv/bin/activate
177
177
pip install -r dev-requirements.txt --quiet
178
178
179
179
- run :
180
- name : Run eslint
180
+ name : 🧪 Run eslint
181
181
command : |
182
182
. venv/bin/activate
183
183
npm run lint
184
184
when : always
185
185
186
186
187
- " python-3.6 " :
187
+ python-3.6 :
188
188
docker :
189
189
- image : circleci/python:3.7.5-stretch-node-browsers
190
190
@@ -196,12 +196,12 @@ jobs:
196
196
- checkout
197
197
198
198
- run :
199
- name : Inject Percy Environment variables
199
+ name : 💉 Inject Percy Environment variables
200
200
command : |
201
201
echo 'export PERCY_TOKEN="$PERCY_PYTHON_TOKEN_V0"' >> $BASH_ENV
202
202
203
203
- run :
204
- name : Install requirements
204
+ name : 🏗️ Install requirements
205
205
command : |
206
206
sudo pip install --upgrade virtualenv
207
207
python -m venv venv || virtualenv venv
@@ -210,15 +210,15 @@ jobs:
210
210
npm ci
211
211
212
212
- run :
213
- name : Install dependencies (dash)
213
+ name : 🏗️ Install dependencies (dash)
214
214
command : |
215
215
. venv/bin/activate
216
216
git clone --depth 1 [email protected] :plotly/dash.git dash-main
217
217
pip install -e ./dash-main[dev,testing] --quiet
218
218
cd dash-main/dash-renderer && npm run build && pip install -e . && cd ../..
219
219
220
220
- run :
221
- name : Install test requirements
221
+ name : 🏗️ Install test requirements
222
222
command : |
223
223
. venv/bin/activate
224
224
npm run build
@@ -227,7 +227,7 @@ jobs:
227
227
find . -name "*.gz" | xargs pip install --no-cache-dir --ignore-installed && cd ..
228
228
229
229
- run :
230
- name : ⚙️ run integration test
230
+ name : ⚙️ Run integration test
231
231
command : |
232
232
. venv/bin/activate
233
233
pytest --junitxml=test-reports/dash.xml tests/integration
@@ -244,9 +244,9 @@ workflows:
244
244
version : 2
245
245
build :
246
246
jobs :
247
- - " python-3.6"
248
- - " node"
249
- - " server-test"
250
- - " standalone-test"
251
- - " unit-test"
252
- - " visual-test"
247
+ - python-3.6
248
+ - node
249
+ - server-test
250
+ - standalone-test
251
+ - unit-test
252
+ - visual-test
0 commit comments