Skip to content

Commit 24b545e

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 24b545e

File tree

5 files changed

+69
-63
lines changed

5 files changed

+69
-63
lines changed

.circleci/config.yml

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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: tox
11+
12+
jobs:
13+
tests:
14+
<<: *default
15+
docker:
16+
- image: 'cimg/python:3.6'
17+
environment:
18+
TOXENV: py36,codecov
19+
TOX_POSARGS: ''
20+
- image: 'docker.elastic.co/elasticsearch/elasticsearch:6.8.12'
21+
name: search
22+
23+
lint:
24+
<<: *default
25+
docker:
26+
- image: 'cimg/python:3.6'
27+
environment:
28+
TOXENV: lint
29+
30+
migrations:
31+
<<: *default
32+
docker:
33+
- image: 'cimg/python:3.6'
34+
environment:
35+
TOXENV: migrations
36+
37+
docs:
38+
<<: *default
39+
docker:
40+
- image: 'cimg/python:3.6'
41+
environment:
42+
TOXENV: docs
43+
44+
docs-lint:
45+
<<: *default
46+
docker:
47+
- image: 'cimg/python:3.6'
48+
environment:
49+
TOXENV: docs-lint
50+
51+
eslint:
52+
<<: *default
53+
docker:
54+
- image: 'cimg/python:3.6'
55+
environment:
56+
TOXENV: eslint
57+
NODE_VERSION: 10.17.0
58+
59+
workflows:
60+
version: 2
61+
test:
62+
jobs:
63+
- lint
64+
- migrations
65+
- docs
66+
- docs-lint
67+
- eslint
68+
- tests

.travis.yml

-52
This file was deleted.

scripts/travis/install_node.sh renamed to scripts/circle/install_node.sh

+1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ then
99
npm install -g bower
1010
npm install
1111
bower install
12+
echo $PATH
1213
fi

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)