Skip to content

Commit

Permalink
CI: use circleci
Browse files Browse the repository at this point in the history
Travis cut to half the number of builds for open source projects,
this is slower builds. We are already paying for circleci.
  • Loading branch information
stsewd committed Oct 27, 2020
1 parent 4cf4aca commit a4708a6
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 63 deletions.
73 changes: 73 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
version: 2.1

default: &default
steps:
- checkout
- run: git submodule sync
- run: git submodule update --init
- run: pip install --user tox
- run: scripts/circle/install_node.sh
- run:
name: Add node to the path
command: |
echo 'export PATH=~/.nvm/versions/node/v${NODE_VERSION}/bin:$PATH' >> $BASH_ENV
source $BASH_ENV
- run: tox

jobs:
tests:
<<: *default
docker:
- image: 'cimg/python:3.6'
environment:
TOXENV: py36,codecov
TOX_POSARGS: ''
- image: 'docker.elastic.co/elasticsearch/elasticsearch:6.8.12'
name: search

lint:
<<: *default
docker:
- image: 'cimg/python:3.6'
environment:
TOXENV: lint

migrations:
<<: *default
docker:
- image: 'cimg/python:3.6'
environment:
TOXENV: migrations

docs:
<<: *default
docker:
- image: 'cimg/python:3.6'
environment:
TOXENV: docs

docs-lint:
<<: *default
docker:
- image: 'cimg/python:3.6'
environment:
TOXENV: docs-lint

eslint:
<<: *default
docker:
- image: 'cimg/python:3.6'
environment:
TOXENV: eslint
NODE_VERSION: 10.17.0

workflows:
version: 2
test:
jobs:
- lint
- migrations
- docs
- docs-lint
- eslint
- tests
52 changes: 0 additions & 52 deletions .travis.yml

This file was deleted.

File renamed without changes.
7 changes: 0 additions & 7 deletions scripts/travis/install_elasticsearch.sh

This file was deleted.

4 changes: 0 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ minversion=2.9.0
envlist = py36,lint,docs
skipsdist = True

[travis]
python =
3.6: py36, codecov

[testenv]
description = run test suite for the application with {basepython}
setenv =
Expand Down

0 comments on commit a4708a6

Please sign in to comment.