Files
pybadges/.circleci/config.yml
2019-04-09 10:43:13 -07:00

68 lines
1.3 KiB
YAML

version: 2
jobs:
Unit Test:
docker:
- image: circleci/python:3.7.1
steps:
- checkout
- run:
command: |
sudo pip install virtualenv
sudo pip install nox
nox -f noxfile.py -s unit
Lint:
docker:
- image: circleci/python:3.7.1
steps:
- checkout
- run:
command: |
sudo pip install virtualenv
sudo pip install nox
nox -f noxfile.py -s lint
Type Check:
- image: circleci/python:3.7.1
steps:
- checkout
- run:
command: |
sudo pip install virtualenv
sudo pip install nox
nox -f noxfile.py -s type_check
Release:
docker:
- image: circleci/python:3.7.1
steps:
- checkout
- run:
command: |
sudo pip install --upgrade twine
sudo pip install --upgrade wheel
sudo pip install --upgrade setuptools
source twine_upload.sh
workflows:
version: 2
test:
jobs:
- Unit Test
- Lint
- Type Check
release:
jobs:
- Release:
filters:
# Runs for no branches and only for tags like "1.2.3"
branches:
ignore: /.*/
tags:
only:
- /^\d+\.\d+\.\d+$/