From 3e3bd53bcce9db9014014bebc2e91f10de37d7e5 Mon Sep 17 00:00:00 2001 From: spokequenouille Date: Tue, 12 Jan 2021 15:59:57 +0100 Subject: [PATCH] test --- .circleci/config.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index fe0b132..e3f5668 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -29,4 +29,17 @@ jobs: environment: POSTGRES_USER: myUsr POSTGRES_DB: psdb - POSTGRES_PASSWORD: somePwd \ No newline at end of file + POSTGRES_PASSWORD: somePwd + steps: + - checkout + - restore_cache: + key: deps-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }} + - run: + name: Waiting for postgresql + command : dockerize -wait tcp://localhost:5432 -timeout 1m + - run: + name: Launching tests + command: | + . venv/bin/activate + flask db upgrade + flask test \ No newline at end of file