From 6b7135bde9450037997cd4ed9ff670555d48a419 Mon Sep 17 00:00:00 2001 From: Abhilash Raj Date: Sun, 5 Nov 2017 20:30:26 -0800 Subject: [PATCH] Use contexts instead of separate builds. --- .circleci/config.yml | 79 +++++++++++++++++++++----------------------- 1 file changed, 37 insertions(+), 42 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 01a7aa2..9335e77 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,50 +1,44 @@ 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 - - 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 + jobs: build: - <<: *defaults - - dev: - environment: - DEV: true - <<: *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 + - 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 workflows: version: 2 @@ -60,4 +54,5 @@ workflows: branches: only: master jobs: - - dev + - build + context: org-global