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