Skip to content

Commit 5fc998a

Browse files
authored
Merge pull request #338 from plotly/update-circle-2
Update circle 2
2 parents 7361db5 + 25375ba commit 5fc998a

File tree

6 files changed

+654
-48
lines changed

6 files changed

+654
-48
lines changed

.circleci/config.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
version: 2
2+
3+
jobs:
4+
"python-2.7": &test-template
5+
docker:
6+
- image: circleci/python:2.7-stretch-browsers
7+
environment:
8+
REQUIREMENTS_FILE: dev-requirements.txt
9+
PYLINTRC: .pylintrc
10+
11+
steps:
12+
- checkout
13+
- restore_cache:
14+
key: deps1-{{ .Branch }}-{{ checksum "dev-requirements.txt" }}
15+
16+
- run:
17+
name: Install dependencies
18+
command: |
19+
sudo pip install virtualenv
20+
python -m venv venv || virtualenv venv
21+
. venv/bin/activate
22+
pip install -r $REQUIREMENTS_FILE
23+
24+
- save_cache:
25+
key: deps1-{{ .Branch }}-{{ checksum "dev-requirements.txt" }}
26+
paths:
27+
- "venv"
28+
29+
- run:
30+
name: Run lint
31+
command: |
32+
. venv/bin/activate
33+
pylint dash setup.py --rcfile=$PYLINTRC
34+
flake8 dash setup.py
35+
36+
- run:
37+
name: Run tests
38+
command: |
39+
. venv/bin/activate
40+
python --version
41+
python -m unittest tests.development.test_base_component
42+
python -m unittest tests.development.test_component_loader
43+
python -m unittest tests.test_integration
44+
python -m unittest tests.test_resources
45+
python -m unittest tests.test_configs
46+
47+
"python-3.6":
48+
<<: *test-template
49+
docker:
50+
- image: circleci/python:3.6-stretch-browsers
51+
environment:
52+
REQUIREMENTS_FILE: dev-requirements.txt
53+
PYLINTRC: .pylintrc
54+
55+
"python-3.7":
56+
<<: *test-template
57+
docker:
58+
- image: circleci/python:3.7-stretch-browsers
59+
environment:
60+
REQUIREMENTS_FILE: dev-requirements-py37.txt
61+
PYLINTRC: .pylintrc37
62+
63+
64+
workflows:
65+
version: 2
66+
build:
67+
jobs:
68+
- "python-2.7"
69+
- "python-3.6"
70+
- "python-3.7"

0 commit comments

Comments
 (0)