From f61b452014866da0a74d01b7d4eb7e754bd42dfc Mon Sep 17 00:00:00 2001 From: Julien Dudek Date: Sat, 9 Jan 2021 15:59:43 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20update=20tipo=20and=20change?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .circleci/config.yml | 70 ++++++++++++++++++++++---------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7e40577..1946e5c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,43 +4,43 @@ # version: 2 jobs: - build: - working_directory: ~/circleci-demo-python-django - docker: # run the steps with Docker +build: + working_directory: ~/circleci-demo-python-django + docker: # run the steps with Docker # CircleCI Python images available at: https://hub.docker.com/r/circleci/python/ - - image: circleci/python:3.8.5 - auth: - username: $DOCKER_HUB_USER_ID - password: $DOCKER_HUB_PWD # context / project UI env-var reference - environment: # environment variables for primary container - PIPENV_VENV_IN_PROJECT: true - DATABASE_URL: postgresql://root@localhost/circle_test?sslmode=disable + - image: circleci/python:3.8.5 + auth: + username: $DOCKER_HUB_USER_ID + password: $DOCKER_HUB_PWD # context / project UI env-var reference + environment: # environment variables for primary container + PIPENV_VENV_IN_PROJECT: true + DATABASE_URL: postgresql://root@localhost/circle_test?sslmode=disable # CircleCI PostgreSQL images available at: https://hub.docker.com/r/circleci/postgres/ - - image: circleci/postgres:9.6.9-alpine - auth: - username: $DOCKER_HUB_USER_ID - password: $DOCKER_HUB_PWD # context / project UI env-var reference - environment: # environment variables for the Postgres container. - POSTGRES_USER: root - POSTGRES_DB: circle_test - steps: # steps that comprise the `build` job - - checkout # check out source code to working directory - - run: sudo chown -R circleci:circleci /usr/local/bin - - run: sudo chown -R circleci:circleci /usr/local/lib/python3.8/site-packages - - restore_cache: - keys: - - v7-dependencies-{{ checksum "requirements/dev.txt" }} - - v7-dependencies- - - run: - command: | - export FLASK_APP=autoapp.py - pip install -r requirements/dev.txt --user - flask db upgrade - flask test - - save_cache: - paths: - - venv - key: v7-dependencies-{{ checksum "requirements/dev.txt" }} + - image: circleci/postgres:9.6.9-alpine + auth: + username: $DOCKER_HUB_USER_ID + password: $DOCKER_HUB_PWD # context / project UI env-var reference + environment: # environment variables for the Postgres container. + POSTGRES_USER: root + POSTGRES_DB: circle_test + steps: # steps that comprise the `build` job + - checkout # check out source code to working directory + - run: sudo chown -R circleci:circleci /usr/local/bin + - run: sudo chown -R circleci:circleci /usr/local/lib/python3.8/site-packages + - restore_cache: + keys: + - v7-dependencies-{{ checksum "requirements/dev.txt" }} + - v7-dependencies- + - run: + command: | + export FLASK_APP=autoapp.py + pip install -r requirements/dev.txt --user + flask db upgrade + flask test + - save_cache: + paths: + - venv + key: v7-dependencies-{{ checksum "requirements/dev.txt" }} back-deploy-heroku: docker: - image: buildpack-deps:trusty