Files
Iris/.circleci/config.yml

57 lines
1.2 KiB
YAML
Raw Normal View History

2019-04-11 11:16:43 +12:00
version: 2
jobs:
build:
docker:
- image: circleci/python:2.7
steps:
- checkout
- run:
name: install python dependencies
command: |
2019-04-11 11:34:38 +12:00
npm install
npm run prod
2019-04-11 11:16:43 +12:00
pip install -e .
2019-04-11 11:34:38 +12:00
test:
2019-04-11 11:16:43 +12:00
docker:
- image: circleci/python:2.7
steps:
- checkout
- run:
name: install python dependencies
command: |
2019-04-11 11:34:38 +12:00
npm run test
deploy:
docker:
- image: circleci/python:2.7
steps:
- checkout
2019-04-11 11:16:43 +12:00
- 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
2019-04-11 11:34:38 +12:00
build_test_and_deploy:
2019-04-11 11:16:43 +12:00
jobs:
- build:
filters:
tags:
only: /.*/
2019-04-11 11:34:38 +12:00
- test:
2019-04-11 11:16:43 +12:00
requires:
- build
2019-04-11 11:34:38 +12:00
filters:
tags:
only: /.*/
- deploy:
requires:
- test
2019-04-11 11:16:43 +12:00
filters:
branches:
only: master