Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #134 from CityOfZion/feature/CD
Browse files Browse the repository at this point in the history
CD support
  • Loading branch information
lllwvlvwlll committed Jun 2, 2020
2 parents e1eb134 + c6b518e commit 6e3d084
Showing 1 changed file with 71 additions and 0 deletions.
71 changes: 71 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
version: 2
jobs:
build_deploy: &build_deploy
working_directory: ~/neo-boa
docker:
- image: circleci/python:3.6.4
steps:
- checkout

- run:
name: Setup Environment
command: |
python3 -m venv venv
source venv/bin/activate
- run:
name: Install Deps
command: |
pip install -r requirements_dev.txt
- run:
name: Build .pypirc
command: |
echo -e "[pypi]" >> ~/.pypirc
echo -e "username = $PYPI_USERNAME >> ~/.pypirc
echo -e "password = $PYPI_PASSWORD" >> ~/.pypirc
- run:
name: Build Package
command: |
python3 setup.py sdist bdist_wheel
- run:
name: Push to TestPyPi
command:
python3 -m twine upload --repository $PYPI_REPO dist/*
build_deploy_test:
<<: *build_deploy
build_deploy_prod:
<<: *build_deploy


workflows:
version: 2
build_deploy:
jobs:
- build_deploy_test:
context: pypy_test
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
- approve-release:
type: approval
requires:
- build_deploy_test
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
- build_deploy_prod:
context: pypi_prod
requires:
- approve-release
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/

0 comments on commit 6e3d084

Please sign in to comment.