57 lines
1.2 KiB
YAML
57 lines
1.2 KiB
YAML
version: 2
|
|
jobs:
|
|
build:
|
|
docker:
|
|
- image: circleci/python:2.7
|
|
steps:
|
|
- checkout
|
|
|
|
- restore_cache:
|
|
key: v1-dependency-cache-{{ checksum "setup.py" }}
|
|
|
|
- run:
|
|
name: install python dependencies
|
|
command: |
|
|
pip install -e .
|
|
|
|
- store_artifacts:
|
|
path: htmlcov/
|
|
|
|
deploy:
|
|
docker:
|
|
- image: circleci/python:2.7
|
|
steps:
|
|
- checkout
|
|
|
|
- restore_cache:
|
|
key: v1-dependency-cache-{{ checksum "setup.py" }}
|
|
|
|
- run:
|
|
name: install python dependencies
|
|
command: |
|
|
pip install -e .
|
|
|
|
- run:
|
|
name: init .pypirc
|
|
command: |
|
|
echo -e "[pypi]" >> ~/.pypirc
|
|
echo -e "username = jaedb" >> ~/.pypirc
|
|
echo -e "password = $PYPI_PASSWORD" >> ~/.pypirc
|
|
- run:
|
|
name: create packages
|
|
command: |
|
|
python setup.py sdist
|
|
workflows:
|
|
version: 2
|
|
build_and_deploy:
|
|
jobs:
|
|
- build:
|
|
filters:
|
|
tags:
|
|
only: /.*/
|
|
- deploy:
|
|
requires:
|
|
- build
|
|
filters:
|
|
branches:
|
|
only: master |