|
|
|
@ -8,7 +8,7 @@ jobs: |
|
|
|
- checkout |
|
|
|
- |
|
|
|
restore_cache: |
|
|
|
key: "deps1-{{ .Branch }}-{{ checksum \"requirements/dev.txt\" }}" |
|
|
|
key: "deps1-{{ .Branch }}-{{ checksum \"requirements/dev.txt/prod.txt\" }}" |
|
|
|
- |
|
|
|
run: |
|
|
|
command: | |
|
|
|
@ -18,7 +18,7 @@ jobs: |
|
|
|
name: "Install Python deps in a venv" |
|
|
|
- |
|
|
|
save_cache: |
|
|
|
key: "deps1-{{ .Branch }}-{{ checksum \"requirements/dev.txt\" }}" |
|
|
|
key: "deps1-{{ .Branch }}-{{ checksum \"requirements/dev.txt/prod.txt\" }}" |
|
|
|
paths: |
|
|
|
- venv |
|
|
|
flask_tests: |
|
|
|
@ -33,14 +33,14 @@ jobs: |
|
|
|
- |
|
|
|
environment: |
|
|
|
POSTGRES_BD: postgres |
|
|
|
POSTGRES_PASSWORD: denis |
|
|
|
POSTGRES_PASSWORD: |
|
|
|
POSTGRES_USER: denis |
|
|
|
image: "circleci/postgres:9.6.9-alpine-ram" |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- |
|
|
|
restore_cache: |
|
|
|
key: "deps1-{{ .Branch }}-{{ checksum \"requirements/dev.txt\" }}" |
|
|
|
key: "deps1-{{ .Branch }}-{{ checksum \"requirements/dev.txt/prod.txt\" }}" |
|
|
|
- |
|
|
|
run: |
|
|
|
command: "dockerize -wait tcp://localhost:5432 -timeout 1m" |
|
|
|
|