Browse Source

👷 change anything for test

main
Julien Dudek 6 years ago
parent
commit
d8a5b6c5c0
  1. 16
      .circleci/config.yml

16
.circleci/config.yml

@ -4,13 +4,14 @@
#
version: 2
jobs:
build:
build: # runs not using Workflows must have a `build` job as entry point
# directory where steps are run
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
username: $DOCKER_HUB_EMAIL
password: $DOCKER_HUB_PWD # context / project UI env-var reference
environment: # environment variables for primary container
PIPENV_VENV_IN_PROJECT: true
@ -18,7 +19,7 @@ jobs:
# 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
username: $DOCKER_HUB_EMAIL
password: $DOCKER_HUB_PWD # context / project UI env-var reference
environment: # environment variables for the Postgres container.
POSTGRES_USER: root
@ -28,19 +29,14 @@ jobs:
- 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-
# Read about caching dependencies: https://circleci.com/docs/2.0/caching/
key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
- 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

Loading…
Cancel
Save