Files
Iris/.circleci/config.yml
James Barnsley 6a26f82385 CircleCI config
2019-04-11 11:34:38 +12:00

57 lines
1.2 KiB
YAML

version: 2
jobs:
build:
docker:
- image: circleci/python:2.7
steps:
- checkout
- run:
name: install python dependencies
command: |
npm install
npm run prod
pip install -e .
test:
docker:
- image: circleci/python:2.7
steps:
- checkout
- run:
name: install python dependencies
command: |
npm run test
deploy:
docker:
- image: circleci/python:2.7
steps:
- checkout
- 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_test_and_deploy:
jobs:
- build:
filters:
tags:
only: /.*/
- test:
requires:
- build
filters:
tags:
only: /.*/
- deploy:
requires:
- test
filters:
branches:
only: master