Skip to content

Commit a4708a6

Browse files
committed
CI: use circleci
Travis cut to half the number of builds for open source projects, this is slower builds. We are already paying for circleci.
1 parent 4cf4aca commit a4708a6

File tree

5 files changed

+73
-63
lines changed

5 files changed

+73
-63
lines changed

.circleci/config.yml

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
version: 2.1
2+
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+
17+
jobs:
18+
tests:
19+
<<: *default
20+
docker:
21+
- image: 'cimg/python:3.6'
22+
environment:
23+
TOXENV: py36,codecov
24+
TOX_POSARGS: ''
25+
- image: 'docker.elastic.co/elasticsearch/elasticsearch:6.8.12'
26+
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
58+
docker:
59+
- image: 'cimg/python:3.6'
60+
environment:
61+
TOXENV: eslint
62+
NODE_VERSION: 10.17.0
63+
64+
workflows:
65+
version: 2
66+
test:
67+
jobs:
68+
- lint
69+
- migrations
70+
- docs
71+
- docs-lint
72+
- eslint
73+
- tests

.travis.yml

-52
This file was deleted.
File renamed without changes.

scripts/travis/install_elasticsearch.sh

-7
This file was deleted.

tox.ini

-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ minversion=2.9.0
33
envlist = py36,lint,docs
44
skipsdist = True
55

6-
[travis]
7-
python =
8-
3.6: py36, codecov
9-
106
[testenv]
117
description = run test suite for the application with {basepython}
128
setenv =

0 commit comments

Comments
 (0)