Skip to content

Commit 31362e2

Browse files
committed
Add Windows CircleCI job.
1 parent 8ee3588 commit 31362e2

File tree

1 file changed

+43
-1
lines changed

1 file changed

+43
-1
lines changed

.circleci/config.yml

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
version: 2
1+
version: 2.1
2+
orbs:
3+
win: circleci/[email protected]
24
jobs:
35
percy-finalize:
46
docker:
@@ -183,6 +185,45 @@ jobs:
183185
environment:
184186
PYVERSION: python27
185187

188+
build-windows-37: &build-windows
189+
working_directory: ~/dash
190+
executor:
191+
name: win/default
192+
shell: bash.exe
193+
environment:
194+
PYVERSION: python37
195+
steps:
196+
- checkout
197+
- run: echo $PYVERSION > ver.txt
198+
- restore_cache:
199+
key: dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-dev.txt" }}-{{ checksum "requires-install.txt" }}-{{ checksum "requires-testing.txt" }}
200+
- run:
201+
name: ️️🏗️ pip dev requirements
202+
command: |
203+
pip install --upgrade virtualenv
204+
virtualenv venv
205+
source venv/Scripts/activate
206+
sed -i '/dash-/d' requires-install.txt
207+
pip install -e . --no-cache-dir -r requires-install.txt -r requires-dev.txt -r requires-testing.txt --progress-bar off
208+
- save_cache:
209+
key: dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-dev.txt" }}-{{ checksum "requires-install.txt" }}-{{ checksum "requires-testing.txt" }}
210+
paths:
211+
- venv
212+
- run:
213+
name: ️️🏗️ build core
214+
command: |
215+
source venv/Scripts/activate && pip install --no-cache-dir --upgrade -e . --progress-bar off && mkdir packages
216+
cd dash-renderer && renderer build && python setup.py sdist && mv dist/* ../packages/ && cd ..
217+
git clone --depth 1 --branch update-webpackconfig https://github.com/plotly/dash-core-components.git
218+
cd dash-core-components && npm ci && npm run build && python setup.py sdist && mv dist/* ../packages/ && cd ..
219+
git clone --depth 1 https://github.com/plotly/dash-renderer-test-components
220+
cd dash-renderer-test-components && npm ci && npm run build:all && python setup.py sdist && mv dist/* ../packages/ && cd ..
221+
ls -la packages
222+
- persist_to_workspace:
223+
root: ~/dash
224+
paths:
225+
- packages/*.tar.gz
226+
186227
test-37: &test
187228
working_directory: ~/dash
188229
docker:
@@ -246,6 +287,7 @@ workflows:
246287
jobs:
247288
- lint-unit-37
248289
- build-core-37
290+
- build-windows-37
249291
- build-misc-37
250292
- test-37:
251293
requires:

0 commit comments

Comments
 (0)