diff --git a/.circleci/config.yml b/.circleci/config.yml index c1e897b..1558e0a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -29,15 +29,21 @@ jobs: - run: sudo chown -R circleci:circleci /usr/local/bin - run: sudo chown -R circleci:circleci /usr/local/lib/python3.8/site-packages - restore_cache: - # Read about caching dependencies: https://circleci.com/docs/2.0/caching/ - key: deps-{{ .Branch }}-{{ checksum "Pipfile.lock" }} + key: deps-{{ .Branch }}-{{ checksum "requirements/dev.txt" }} - run: command: | - export FLASK_APP=autoapp.py - export FLASK_DEBUG: 1 pip install -r requirements/dev.txt --user flask db upgrade + sleep 1 flask test + environment: + CONDUIT_SECRET: 'something-really-secret' + FLASK_APP: /home/circleci/repo/autoapp.py + FLASK_DEBUG: 1 + - save_cache: + key: deps-{{ .Branch }}-{{ checksum "requirements/dev.txt" }} + paths: + - "venv" back-deploy-heroku: docker: - image: buildpack-deps:trusty