Skip to content

Commit

Permalink
Improve build (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-Andre-Rivet authored Mar 4, 2019
1 parent 6f7f4cc commit 410234b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 19 deletions.
38 changes: 22 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,36 +20,42 @@ jobs:
name: Write Job name
command: echo $CIRCLE_JOB > circlejob.txt

- restore_cache:
key: deps1-{{ .Branch }}-{{ checksum "dev-requirements.txt" }}-{{ checksum "package.json" }}-{{ checksum ".circleci/config.yml" }}-{{ checksum "circlejob.txt" }}

- run:
name: Install dependencies
command: |
sudo pip install virtualenv --upgrade
sudo pip install --upgrade virtualenv
python -m venv venv || virtualenv venv
. venv/bin/activate
pip install -e .
pip install -r dev-requirements.txt --quiet
pip list | grep dash
npm install --ignore-scripts
- run:
name: Build
command: npm run build

- save_cache:
key: deps1-{{ .Branch }}-{{ checksum "dev-requirements.txt" }}-{{ checksum "package.json" }}-{{ checksum ".circleci/config.yml" }}-{{ checksum "circlejob.txt" }}
paths:
- "venv"
- "node_modules"

- run:
name: Lint & format
command: |
npm run lint:test
npm run format:test
- run:
name: Install dependencies (dash)
command: |
git clone git@github.com:plotly/dash.git
git clone git@github.com:plotly/dash-core-components.git
git clone git@github.com:plotly/dash-html-components.git
git clone git@github.com:plotly/dash-table.git
. venv/bin/activate
pip install -e ./dash --quiet
cd dash-core-components && npm install --ignore-scripts && npm run build && pip install -e . && cd ..
cd dash-html-components && npm install --ignore-scripts && npm run build && pip install -e . && cd ..
cd dash-table && npm install --ignore-scripts && npm run build && pip install -e . && cd ..
- run:
name: Build
command: |
. venv/bin/activate
npm run build
pip install -e . --quiet
pip list | grep dash
- run:
name: Run tests
command: |
Expand Down
4 changes: 1 addition & 3 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
-e git+git://github.com/plotly/dash.git@master#egg=dash
-e git+git://github.com/plotly/dash-core-components@fix-select-css#egg=dash-core-components
percy
selenium
mock
six
six

0 comments on commit 410234b

Please sign in to comment.