guidezSeb 6 years ago
parent
commit
3b3a7ff6f4
  1. 40
      .circleci/config.yml

40
.circleci/config.yml

@ -22,26 +22,26 @@ jobs:
key: deps-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }} key: deps-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }}
paths: paths:
- "venv" - "venv"
# test:
# docker:
# - image: circleci/python:3.9-buster-node-browsers
# environment:
# DATABASE_URL: postgresql://myUser:myPassword@localhost:5432/my_database_postgres
# FLASK_APP: autoapp.py
# CONDUIT_SECRET: 'something-really-secret'
# FLASK_DEBUG: 1
# - image: circleci/postgres:9.6.2-alpine
# environment:
# POSTGRES_USER: myUser
# POSTGRES_DB: my_database_postgres
# POSTGRES_PASSWORD: myPassword
# steps:
# - checkout
# - restore_cache:
# key: deps-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }}
# - run:
# name: Waiting postgresql
# command : dockerize -wait tcp://localhost:5432 -timeout 1m
test:
docker:
- image: circleci/python:3.9-buster-node-browsers
environment:
DATABASE_URL: postgresql://myUser:myPassword@localhost:5432/my_database_postgres
FLASK_APP: autoapp.py
CONDUIT_SECRET: 'something-really-secret'
FLASK_DEBUG: 1
- image: circleci/postgres:9.6.2-alpine
environment:
POSTGRES_USER: myUser
POSTGRES_DB: my_database_postgres
POSTGRES_PASSWORD: myPassword
steps:
- checkout
- restore_cache:
key: deps-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }}
- run:
name: Waiting postgresql
command : dockerize -wait tcp://localhost:5432 -timeout 1m
# - run: # - run:
# name: Activate tests # name: Activate tests
# command: . venv/bin/activate # command: . venv/bin/activate

Loading…
Cancel
Save