Skip to content

Commit 3651f11

Browse files
committed
Use only 2 jobs
1 parent a4708a6 commit 3651f11

File tree

1 file changed

+25
-53
lines changed

1 file changed

+25
-53
lines changed

.circleci/config.yml

+25-53
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,45 @@
11
version: 2.1
22

3-
default: &default
4-
steps:
5-
- checkout
6-
- run: git submodule sync
7-
- run: git submodule update --init
8-
- run: pip install --user tox
9-
- run: scripts/circle/install_node.sh
10-
- run:
11-
name: Add node to the path
12-
command: |
13-
echo 'export PATH=~/.nvm/versions/node/v${NODE_VERSION}/bin:$PATH' >> $BASH_ENV
14-
source $BASH_ENV
15-
- run: tox
16-
173
jobs:
184
tests:
19-
<<: *default
205
docker:
216
- image: 'cimg/python:3.6'
227
environment:
23-
TOXENV: py36,codecov
248
TOX_POSARGS: ''
259
- image: 'docker.elastic.co/elasticsearch/elasticsearch:6.8.12'
2610
name: search
27-
28-
lint:
29-
<<: *default
30-
docker:
31-
- image: 'cimg/python:3.6'
32-
environment:
33-
TOXENV: lint
34-
35-
migrations:
36-
<<: *default
37-
docker:
38-
- image: 'cimg/python:3.6'
39-
environment:
40-
TOXENV: migrations
41-
42-
docs:
43-
<<: *default
44-
docker:
45-
- image: 'cimg/python:3.6'
46-
environment:
47-
TOXENV: docs
48-
49-
docs-lint:
50-
<<: *default
51-
docker:
52-
- image: 'cimg/python:3.6'
53-
environment:
54-
TOXENV: docs-lint
55-
56-
eslint:
57-
<<: *default
11+
steps:
12+
- checkout
13+
- run: git submodule sync
14+
- run: git submodule update --init
15+
- run: pip install --user tox
16+
- run: tox -e py36,codecov
17+
18+
checks:
5819
docker:
5920
- image: 'cimg/python:3.6'
6021
environment:
61-
TOXENV: eslint
6222
NODE_VERSION: 10.17.0
23+
steps:
24+
- checkout
25+
- run: git submodule sync
26+
- run: git submodule update --init
27+
- run: pip install --user tox
28+
- run: scripts/circle/install_node.sh
29+
- run:
30+
name: Add node to the path
31+
command: |
32+
echo 'export PATH=~/.nvm/versions/node/v${NODE_VERSION}/bin:$PATH' >> $BASH_ENV
33+
source $BASH_ENV
34+
- run: tox -e migrations
35+
- run: tox -e lint
36+
- run: tox -e docs-lint
37+
- run: tox -e docs
38+
- run: tox -e eslint
6339

6440
workflows:
6541
version: 2
6642
test:
6743
jobs:
68-
- lint
69-
- migrations
70-
- docs
71-
- docs-lint
72-
- eslint
44+
- checks
7345
- tests

0 commit comments

Comments
 (0)