From 0224318f88091030b549d296dd51817d52859d81 Mon Sep 17 00:00:00 2001 From: guidezSeb Date: Sat, 16 Jan 2021 17:30:37 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=85change=20synthax=20python?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .circleci/config.yml | 63 +++++++++++++++++++++++--------------------- 1 file changed, 33 insertions(+), 30 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 354cdcd..e73424c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,35 +22,35 @@ jobs: key: deps-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }} paths: - "venv" - test: - docker: - - image: circleci/python:3.9-buster-node-browsers - environment: - DATABASE_URL: postgresql://myUser:myPassword@localhost:5432/my_database_postgres - FLASK_APP: autoapp.py - CONDUIT_SECRET: 'something-really-secret' - FLASK_DEBUG: 1 - - image: circleci/postgres:9.6.2-alpine - environment: - POSTGRES_USER: myUser - POSTGRES_DB: my_database_postgres - POSTGRES_PASSWORD: myPassword - steps: - - checkout - - restore_cache: - key: deps-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }} - - run: - name: Waiting postgresql - command : dockerize -wait tcp://localhost:5432 -timeout 1m - # - run: - # name: Activate tests - # command: . venv/bin/activate - # - run: - # name: Launching upgrade - # command: flask db upgrade - # - run: - # name: Launching tests - # command: flask test + # test: + # docker: + # - image: circleci/python:3.9-buster-node-browsers + # environment: + # DATABASE_URL: postgresql://myUser:myPassword@localhost:5432/my_database_postgres + # FLASK_APP: autoapp.py + # CONDUIT_SECRET: 'something-really-secret' + # FLASK_DEBUG: 1 + # - image: circleci/postgres:9.6.2-alpine + # environment: + # POSTGRES_USER: myUser + # POSTGRES_DB: my_database_postgres + # POSTGRES_PASSWORD: myPassword + # steps: + # - checkout + # - restore_cache: + # key: deps-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }} + # - run: + # name: Waiting postgresql + # command : dockerize -wait tcp://localhost:5432 -timeout 1m + # - run: + # name: Activate tests + # command: . venv/bin/activate + # - run: + # name: Launching upgrade + # command: flask db upgrade + # - run: + # name: Launching tests + # command: flask test deploy-heroku: docker: @@ -69,7 +69,10 @@ jobs: command: HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/api/articles` - run: name: Smoke check - command: if [ "$HTTPCODE" -ne 200 ];then echo "heroku app not responding, failing to deploy" exit 1 fi; + command: if [ "$HTTPCODE" -ne 200 ];then + echo "heroku app not responding, failing to deploy" + exit 1 + fi; docker-build-push: working_directory: /dockerapp docker: