-
Notifications
You must be signed in to change notification settings - Fork 33
/
config.yml
87 lines (73 loc) · 2.35 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: 2
jobs:
"python-2.7": &test-template
docker:
- image: circleci/python:2.7-stretch-node-browsers
environment:
PERCY_PARALLEL_TOTAL: 2
working_directory: ~/repo
steps:
- checkout
- run:
name: Set PERCY_NONCE
command: echo export PERCY_PARALLEL_NONCE=$CIRCLE_WORKFLOW_ID >> $HOME/.circlerc
- run:
name: Write Job name
command: echo $CIRCLE_JOB > circlejob.txt
- run:
name: Install dependencies
command: |
sudo pip install --upgrade virtualenv
python -m venv venv || virtualenv venv
. venv/bin/activate
pip install -r dev-requirements.txt --quiet
npm install --ignore-scripts
- 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: |
. venv/bin/activate
python --version
npm run test:py
"python-3.6":
<<: *test-template
docker:
- image: circleci/python:3.6-stretch-node-browsers
environment:
PERCY_ENABLE: 0
"python-3.7":
<<: *test-template
docker:
- image: circleci/python:3.7-stretch-node-browsers
environment:
PERCY_ENABLE: 0
workflows:
version: 2
build:
jobs:
- "python-2.7"
- "python-3.6"
- "python-3.7"