1
0
Fork 0
mirror of https://github.com/shouptech/flask-tutorial.git synced 2026-02-03 07:29:42 +00:00
flask-tutorial/.circleci/config.yml
Mike Shoup a6162261d9 Raise exception when variables are missing
Raises a ConfigError exception when configuration variables are missing.
2018-11-04 08:41:43 -07:00

36 lines
820 B
YAML

version: 2
jobs:
build:
docker:
- image: python:3
steps:
- checkout
- run:
name: Install prerequisites
command: |
pip install pytest coverage
pip install -e .
- run:
name: Create config file
command: |
mkdir -p instance
echo << EOF
FLASK_APP='flaskr'
FLASK_ENV='development'
SECRET_KEY='test'
SQLALCHEMY_DATABASE_URI='sqlite:////tmp/flaskr.sqlite.db'
EOF > instance/config.py
- run:
name: Run coverage tests
command: |
coverage run -m pytest
coverage report -m
- run:
name: Upload to codecov.io
command: |
pip install codecov
codecov