|
|
@ -7,7 +7,7 @@ jobs: |
|
|
steps: |
|
|
steps: |
|
|
- checkout |
|
|
- checkout |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
key: deps-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }} |
|
|
|
|
|
|
|
|
key: deps12-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }} |
|
|
- run: |
|
|
- run: |
|
|
name: set env vars |
|
|
name: set env vars |
|
|
command: | |
|
|
command: | |
|
|
@ -21,14 +21,14 @@ jobs: |
|
|
. venv/bin/activate |
|
|
. venv/bin/activate |
|
|
pip install -r requirements/dev.txt |
|
|
pip install -r requirements/dev.txt |
|
|
- save_cache: |
|
|
- save_cache: |
|
|
key: deps-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }} |
|
|
|
|
|
|
|
|
key: deps12-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }} |
|
|
paths: |
|
|
paths: |
|
|
- "venv" |
|
|
- "venv" |
|
|
test: |
|
|
test: |
|
|
docker: |
|
|
docker: |
|
|
- image: python:3.8-buster |
|
|
- image: python:3.8-buster |
|
|
environment: |
|
|
environment: |
|
|
DATABASE_URL: postgresql://myUsr:somePwd@localhost:5433/psdb |
|
|
|
|
|
|
|
|
DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/psdb |
|
|
- image: circleci/postgres:9.6.2-alpine |
|
|
- image: circleci/postgres:9.6.2-alpine |
|
|
environment: |
|
|
environment: |
|
|
POSTGRES_USER: $POSTGRES_USER |
|
|
POSTGRES_USER: $POSTGRES_USER |
|
|
@ -37,10 +37,10 @@ jobs: |
|
|
steps: |
|
|
steps: |
|
|
- checkout |
|
|
- checkout |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
key: deps-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }} |
|
|
|
|
|
|
|
|
key: deps12-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }} |
|
|
- run: |
|
|
- run: |
|
|
name: postgres |
|
|
name: postgres |
|
|
command : dockerize -wait tcp://localhost:5433 -timeout 1m |
|
|
|
|
|
|
|
|
command : dockerize -wait tcp://localhost:5432 -timeout 1m |
|
|
- run: |
|
|
- run: |
|
|
name : testing |
|
|
name : testing |
|
|
command: | |
|
|
command: | |
|
|
|