Browse Source

👷 Début de l'étape des tests pour CircleCI

dependabot/pip/requirements/sqlalchemy-1.3.0
Gianni GIUDICE 6 years ago
parent
commit
1c3c70ee69
  1. 23
      .circleci/config.yml

23
.circleci/config.yml

@ -17,9 +17,32 @@ jobs:
key: deps-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }} key: deps-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }}
paths: paths:
- "venv" - "venv"
flask_tests:
docker:
- image: circleci/postgres:9.6.9-alpine
environment:
POSTGRES_USER: myUsr
POSTGRES_PASSWORD: somePwd
POSTGRES_BD: psdb
- image: circleci/python:3.9
environment:
DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/psdb
CONDUIT_SECRET: 'something-really-secret'
FLASK_APP: autoapp.py
FLASK_DEBUG: 1
steps:
- checkout
- restore_cache:
key: deps-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }}
- run:
name: Attente de postgres
command: dockerize -wait tcp://localhost:5432 -timeout 1m
workflows: workflows:
version: 2 version: 2
tp: tp:
jobs: jobs:
- build - build
- flask_tests:
requires:
- build
Loading…
Cancel
Save