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

36 lines
819 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
cat << EOF > instance/config.py
FLASK_APP='flaskr'
FLASK_ENV='development'
SECRET_KEY='test'
SQLALCHEMY_DATABASE_URI='sqlite:////tmp/flaskr.sqlite.db'
EOF
- run:
name: Run coverage tests
command: |
coverage run -m pytest
coverage report -m
- run:
name: Upload to codecov.io
command: |
pip install codecov
codecov