diff --git a/.circleci/config.yml b/.circleci/config.yml index c82ee89..01a7aa2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,44 +2,41 @@ version: '2' defaults: &defaults 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 + - 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: - name: Building Container Images - command: ./build.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 - - 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: build: <<: *defaults @@ -62,6 +59,5 @@ workflows: filters: branches: only: master - - jobs: - - dev + jobs: + - dev