Use Circle CI for faster builds. (#181)

Move to Circle CI from Travis CI.
This commit is contained in:
Abhilash Raj
2017-11-05 18:41:00 -08:00
committed by GitHub
parent 389d166f2b
commit 12e7761c1f
7 changed files with 121 additions and 27 deletions

44
.circleci/config.yml Normal file
View File

@@ -0,0 +1,44 @@
version: '2'
jobs:
build:
docker:
- image: circleci/python:3
steps:
- checkout
- setup_remote_docker
- run:
name: Setup Environment
command: source setup_env.sh
- run:
name: Install Docker Compose
command: sudo pip install docker-compose
- run:
name: Building Container Images
command: ./build.sh
- run:
name: Generate Tests
command: bash tests/generate_tests.sh
- run:
environment:
DB: postgres
name: Postgres Tests
command: bash tests/test.sh
- run:
environment:
DB: mysql
name: MySQL Test
command: bash tests/test.sh
- deploy:
environment:
REGISTRY: QUAY
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
bash .travis/deploy.sh
fi