Validate configuration.

This commit is contained in:
Abhilash Raj
2017-11-05 20:10:08 -08:00
committed by Abhilash Raj
parent 2c1552cc24
commit 81c57adf90

View File

@@ -2,44 +2,41 @@ version: '2'
defaults: &defaults defaults: &defaults
docker: docker:
- image: circleci/python:3 - image: circleci/python:3
steps: steps:
- checkout - checkout
- setup_remote_docker - setup_remote_docker
- run: - run:
name: Setup Environment name: Setup Environment
command: source setup_env.sh command: source setup_env.sh
- run: - run:
name: Install Docker Compose name: Install Docker Compose
command: sudo pip 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: - run:
name: Building Container Images environment:
command: ./build.sh 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
- 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
jobs: jobs:
build: build:
<<: *defaults <<: *defaults
@@ -62,6 +59,5 @@ workflows:
filters: filters:
branches: branches:
only: master only: master
jobs:
jobs: - dev
- dev