Yield generated for e5648a57-7187-4b40-9453-05010c908229
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

36 lines
1.0 KiB

version: 2
jobs:
build:
docker:
- image: circleci/python:3.9.1
- image: circleci/postgres:9.6.5
environment:
POSTGRES_DB: psqluer
POSTGRES_USER: myUsr
POSTGRES_PASSWORD: somePwd
working_directory: ~/repo
steps:
- checkout
- setup_remote_docker
- restore_cache:
keys:
- dependencies-{{ checksum "requirements/dev.txt" }}-{{ checksum "requirements/prod.txt" }}
# fallback to using the latest cache if no exact match is found
- dependencies-
- run:
name: Install dependencies
command: pip install -r requirements/dev.txt --user
- run:
name: Setup dababase
environment:
FLASK_APP: /home/circleci/repo/autoapp.py
FLASK_DEBUG: 0
DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/myUsr
POSTGRES_PORT: 5432
command: flask db upgrade
workflows:
version: 2
build-test:
jobs:
- build