Skip to content

Commit 410234b

Browse files
Improve build (#130)
1 parent 6f7f4cc commit 410234b

File tree

2 files changed

+23
-19
lines changed

2 files changed

+23
-19
lines changed

.circleci/config.yml

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,36 +20,42 @@ jobs:
2020
name: Write Job name
2121
command: echo $CIRCLE_JOB > circlejob.txt
2222

23-
- restore_cache:
24-
key: deps1-{{ .Branch }}-{{ checksum "dev-requirements.txt" }}-{{ checksum "package.json" }}-{{ checksum ".circleci/config.yml" }}-{{ checksum "circlejob.txt" }}
25-
2623
- run:
2724
name: Install dependencies
2825
command: |
29-
sudo pip install virtualenv --upgrade
26+
sudo pip install --upgrade virtualenv
3027
python -m venv venv || virtualenv venv
3128
. venv/bin/activate
32-
pip install -e .
3329
pip install -r dev-requirements.txt --quiet
34-
pip list | grep dash
3530
npm install --ignore-scripts
3631
37-
- run:
38-
name: Build
39-
command: npm run build
40-
41-
- save_cache:
42-
key: deps1-{{ .Branch }}-{{ checksum "dev-requirements.txt" }}-{{ checksum "package.json" }}-{{ checksum ".circleci/config.yml" }}-{{ checksum "circlejob.txt" }}
43-
paths:
44-
- "venv"
45-
- "node_modules"
46-
4732
- run:
4833
name: Lint & format
4934
command: |
5035
npm run lint:test
5136
npm run format:test
5237
38+
- run:
39+
name: Install dependencies (dash)
40+
command: |
41+
git clone [email protected]:plotly/dash.git
42+
git clone [email protected]:plotly/dash-core-components.git
43+
git clone [email protected]:plotly/dash-html-components.git
44+
git clone [email protected]:plotly/dash-table.git
45+
. venv/bin/activate
46+
pip install -e ./dash --quiet
47+
cd dash-core-components && npm install --ignore-scripts && npm run build && pip install -e . && cd ..
48+
cd dash-html-components && npm install --ignore-scripts && npm run build && pip install -e . && cd ..
49+
cd dash-table && npm install --ignore-scripts && npm run build && pip install -e . && cd ..
50+
51+
- run:
52+
name: Build
53+
command: |
54+
. venv/bin/activate
55+
npm run build
56+
pip install -e . --quiet
57+
pip list | grep dash
58+
5359
- run:
5460
name: Run tests
5561
command: |

dev-requirements.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
-e git+git://github.com/plotly/dash.git@master#egg=dash
2-
-e git+git://github.com/plotly/dash-core-components@fix-select-css#egg=dash-core-components
31
percy
42
selenium
53
mock
6-
six
4+
six

0 commit comments

Comments
 (0)