Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 8ef4a64

Browse files
Formatted .circleci config and added Jest step
1 parent 72ad1c3 commit 8ef4a64

File tree

1 file changed

+67
-67
lines changed

1 file changed

+67
-67
lines changed

.circleci/config.yml

Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,84 @@
11
version: 2
22

33
jobs:
4-
"python-2.7": &test-template
5-
docker:
6-
- image: circleci/python:2.7-stretch-node-browsers
7-
environment:
8-
PYTHON_VERSION: py27
4+
'python-2.7': &test-template
5+
docker:
6+
- image: circleci/python:2.7-stretch-node-browsers
7+
environment:
8+
PYTHON_VERSION: py27
99

10-
steps:
11-
- checkout
10+
steps:
11+
- checkout
1212

13-
- run:
14-
name: Create virtual env
15-
command: python -m venv || virtualenv venv
13+
- run:
14+
name: Create virtual env
15+
command: python -m venv || virtualenv venv
1616

17-
- run:
18-
name: Write job name
19-
command: echo $CIRCLE_JOB > circlejob.txt
17+
- run:
18+
name: Write job name
19+
command: echo $CIRCLE_JOB > circlejob.txt
2020

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

24-
- run:
25-
name: Install dependencies
26-
command: |
27-
sudo pip install virtualenv --upgrade
28-
. venv/bin/activate
29-
pip install -r requirements-dev.txt
30-
npm install --ignore-scripts
24+
- run:
25+
name: Install dependencies
26+
command: |
27+
sudo pip install virtualenv --upgrade
28+
. venv/bin/activate
29+
pip install -r requirements-dev.txt
30+
npm install --ignore-scripts
3131
32-
- save_cache:
33-
key: deps1-{{ .Branch }}-{{ checksum "requirements-dev.txt" }}-{{ checksum "package.json" }}-{{ checksum "package-lock.json" }}-{{ checksum ".circleci/config.yml" }}-{{ checksum "circlejob.txt" }}
34-
paths:
35-
- "venv"
36-
- "node_modules"
32+
- save_cache:
33+
key: deps1-{{ .Branch }}-{{ checksum "requirements-dev.txt" }}-{{ checksum "package.json" }}-{{ checksum "package-lock.json" }}-{{ checksum ".circleci/config.yml" }}-{{ checksum "circlejob.txt" }}
34+
paths:
35+
- 'venv'
36+
- 'node_modules'
3737

38-
- run:
39-
name: prettier --list-different
40-
command: npm run format:test
38+
- run:
39+
name: prettier --list-different
40+
command: npm run format:test
4141

42-
- run:
43-
name: npm run lint
44-
command: npm run lint
42+
- run:
43+
name: npm run lint
44+
command: npm run lint
4545

46-
- run:
47-
name: Build
48-
command: |
49-
. venv/bin/activate
50-
npm run build:js
51-
npm run build:py
46+
- run:
47+
name: Build
48+
command: |
49+
. venv/bin/activate
50+
npm run build:js
51+
npm run build:py
5252
53-
- run:
54-
name: Run tests
55-
command: |
56-
. venv/bin/activate
57-
python --version
58-
python -m unittest test.test_integration
59-
python -m unittest test.test_dash_import
53+
- run:
54+
name: Run tests
55+
command: |
56+
. venv/bin/activate
57+
python --version
58+
npm run test-unit
59+
python -m unittest test.test_integration
60+
python -m unittest test.test_dash_import
6061
61-
"python-3.6":
62-
<<: *test-template
63-
docker:
64-
- image: circleci/python:3.6-stretch-node-browsers
65-
environment:
66-
PYTHON_VERSION: py36
67-
PERCY_ENABLE: 0
68-
69-
"python-3.7":
70-
<<: *test-template
71-
docker:
72-
- image: circleci/python:3.7-stretch-node-browsers
73-
environment:
74-
PYTHON_VERSION: py37
75-
PERCY_ENABLE: 0
62+
'python-3.6':
63+
<<: *test-template
64+
docker:
65+
- image: circleci/python:3.6-stretch-node-browsers
66+
environment:
67+
PYTHON_VERSION: py36
68+
PERCY_ENABLE: 0
7669

70+
'python-3.7':
71+
<<: *test-template
72+
docker:
73+
- image: circleci/python:3.7-stretch-node-browsers
74+
environment:
75+
PYTHON_VERSION: py37
76+
PERCY_ENABLE: 0
7777

7878
workflows:
79-
version: 2
80-
build:
81-
jobs:
82-
- "python-2.7"
83-
- "python-3.6"
84-
- "python-3.7"
79+
version: 2
80+
build:
81+
jobs:
82+
- 'python-2.7'
83+
- 'python-3.6'
84+
- 'python-3.7'

0 commit comments

Comments
 (0)