A simple flask app with unit tests.
Learning Concourse CI/CD.
- Make a flask app with a very simple ui.
- Write unit tests.
- Push to GH
- Write a concourse pipeline:
- Repo is a trigger resource.
- When the repo changes:
- Pipeline pulls it.
- Pipeline runs unit tests.
- If UTs pass:
- Pipeline deploys to AWS.
- Pipeline tests flask API.
- If UTs fail:
- Do not deploy
- Report failure with details
We are running this app in a python 3.6 virtual env. Even so py.test does not want to run using python3. This fixes it:
python3 $(which py.test)