flake8/.gitlab-ci.yml
Ian Stapleton Cordasco c58a4662d8
Use black to reformat Flake8
Instead of just using Flake8 and pylint to keep Flake8 clean, let's also
use black to make it less manual for clean-up.
2018-10-20 12:37:14 -05:00

70 lines
966 B
YAML

image: python
stages:
- test
- build
- release
before_script:
- curl -O https://bootstrap.pypa.io/get-pip.py
- python get-pip.py
- pip install -r dev-requirements.txt
after_script:
- pip install codecov
- codecov --token=7d117e6b-aab6-4283-ab19-166dafc38cf5
python2:
image: python:2.7
stage: test
script: tox -e py27
python34:
image: python:3.4
stage: test
script: tox -e py34
python35:
image: python:3.5
stage: test
script: tox -e py35
python36:
image: python:3.6
stage: test
script: tox -e py36
python37:
image: python:3.7-rc
stage: test
script: tox -e py37
linters:
image: python:3.6
stage: test
script: tox -e linters
docs:
stage: test
script: tox -e docs
dogfood:
stage: test
script: tox -e dogfood
build:
stage: build
script: tox -e build
artifacts:
paths:
- dist/
expire_in: 1 month
release:
stage: release
script: tox -e build
artifacts:
paths:
- dist
only:
- tags