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