|
|
|
@ -30,14 +30,14 @@ jobs: |
|
|
|
git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_PROJECT_NAME.git main |
|
|
|
|
|
|
|
test: |
|
|
|
docker: |
|
|
|
- image: circleci/python:3.7.9-stretch-browsers |
|
|
|
docker: |
|
|
|
- image: circleci/python:3.9-buster-node-browsers |
|
|
|
environment: |
|
|
|
DATABASE_URL: postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5432/$POSTGRES_DB |
|
|
|
FLASK_APP: autoapp.py |
|
|
|
CONDUIT_SECRET: $CONDUIT_SECRET |
|
|
|
FLASK_DEBUG: 1 |
|
|
|
DATABASE_URL: postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5432/$POSTGRES_DB |
|
|
|
- image: circleci/postgres:9.5.19-alpine |
|
|
|
- image: circleci/postgres:9.6.2-alpine |
|
|
|
environment: |
|
|
|
POSTGRES_USER: $POSTGRES_USER |
|
|
|
POSTGRES_DB: $POSTGRES_DB |
|
|
|
@ -45,10 +45,10 @@ jobs: |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
key: deps1-{{ .Branch }}-{{ checksum "requirements/dev.txt" }} |
|
|
|
- run: |
|
|
|
name: Wait for postgres |
|
|
|
command: dockerize -wait tcp://localhost:5432 -timeout 1m |
|
|
|
key: deps-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }} |
|
|
|
- run: |
|
|
|
name: Waiting for postgres |
|
|
|
command : dockerize -wait tcp://localhost:5432 -timeout 1m |
|
|
|
- run: |
|
|
|
name: running test |
|
|
|
command: | |
|
|
|
|