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