|
|
@ -44,6 +44,7 @@ jobs: # A basic unit of work in a run |
|
|
- store_artifacts: # Upload test summary for display in Artifacts: https://circleci.com/docs/2.0/artifacts/ |
|
|
- store_artifacts: # Upload test summary for display in Artifacts: https://circleci.com/docs/2.0/artifacts/ |
|
|
path: test-results |
|
|
path: test-results |
|
|
destination: tr1 |
|
|
destination: tr1 |
|
|
|
|
|
|
|
|
test: |
|
|
test: |
|
|
docker: |
|
|
docker: |
|
|
- image: circleci/python:3.9.1 |
|
|
- image: circleci/python:3.9.1 |
|
|
@ -82,11 +83,24 @@ jobs: # A basic unit of work in a run |
|
|
FLASK_DEBUG: 1 |
|
|
FLASK_DEBUG: 1 |
|
|
DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/myUsr |
|
|
DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/myUsr |
|
|
|
|
|
|
|
|
|
|
|
heroku: |
|
|
|
|
|
docker: |
|
|
|
|
|
- image: buildpack-deps:trusty |
|
|
|
|
|
steps: |
|
|
|
|
|
- checkout |
|
|
|
|
|
|
|
|
|
|
|
- run: |
|
|
|
|
|
name: Heroku Deploy |
|
|
|
|
|
command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git main |
|
|
|
|
|
|
|
|
workflows: |
|
|
workflows: |
|
|
version: 2 |
|
|
version: 2 |
|
|
build-test: |
|
|
build-test: |
|
|
jobs: |
|
|
jobs: |
|
|
- build |
|
|
- build |
|
|
- test: |
|
|
|
|
|
requires: |
|
|
|
|
|
|
|
|
# - test: |
|
|
|
|
|
# requires: |
|
|
|
|
|
# - build |
|
|
|
|
|
- heroku |
|
|
|
|
|
requires |
|
|
- build |
|
|
- build |