Browse Source

💚 clarify

main
Julien Dudek 6 years ago
parent
commit
310d796abe
  1. 35
      .circleci/config.yml

35
.circleci/config.yml

@ -6,7 +6,7 @@ version: 2
jobs:
build:
docker:
- image: circleci/python:3.6.4
- image: circleci/python:3.7.4
working_directory: ~/repo
@ -16,8 +16,8 @@ jobs:
# Download and cache dependencies
- restore_cache:
keys:
- v7-dependencies-{{ checksum "requirements/dev.txt" }}
- v7-dependencies-
- v8-dependencies-{{ checksum "requirements/dev.txt" }}
- v8-dependencies-
# fallback to using the latest cache if no exact match is found
- run:
@ -26,20 +26,17 @@ jobs:
python3 -m venv venv
. venv/bin/activate
pip install -r requirements/dev.txt
environment:
CONDUIT_SECRET: 'something-really-secret'
FLASK_APP: /home/circleci/repo/autoapp.py
FLASK_DEBUG: 1
- save_cache:
paths:
- venv
key: v7-dependencies-{{ checksum "requirements/dev.txt" }}
key: v8-dependencies-{{ checksum "requirements/dev.txt" }}
test:
docker:
- image: circleci/python:3.6.4
- image: postgres:9.6.2-alpine
- image: circleci/python:3.7.4
environment:
DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/myUsr
- image: circleci/postgres:9.6.5
environment:
POSTGRES_USER: myUsr
POSTGRES_PASSOWRD: somePwd
@ -51,8 +48,8 @@ jobs:
- checkout
- restore_cache:
keys:
- v7-dependencies-{{ checksum "requirements/dev.txt" }}
- v7-dependencies-
- v8-dependencies-{{ checksum "requirements/dev.txt" }}
- v8-dependencies-
# fallback to using the latest cache if no exact match is found
- run:
@ -61,16 +58,16 @@ jobs:
. venv/bin/activate
sleep 1
flask db upgrade
- run:
name: flask test
command: |
. venv/bin/activate
sleep 1
flask test
environment:
CONDUIT_SECRET: 'something-really-secret'
FLASK_APP: /home/circleci/repo/autoapp.py
DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/myUsr
FLASK_DEBUG: 1
- save_cache:
paths:
- venv
key: v7-dependencies-{{ checksum "requirements/dev.txt" }}
key: v8-dependencies-{{ checksum "requirements/dev.txt" }}
back-deploy-heroku:
docker:

Loading…
Cancel
Save