-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from kbernst30/updated_build_pipeline
Updated build pipeline
- Loading branch information
Showing
2 changed files
with
78 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,93 @@ | ||
version: 2.1 | ||
|
||
jobs: | ||
|
||
test: | ||
working_directory: ~/django-data-seeder | ||
docker: | ||
- image: circleci/python:3.6.4 | ||
steps: | ||
- checkout | ||
- run: | ||
name: install python depedencies | ||
command: | | ||
sudo virtualenv venv | ||
source venv/bin/activate | ||
- run: | ||
name: install django | ||
command: | | ||
sudo pip install django | ||
- run: | ||
name: run tests | ||
command: | | ||
python runtests.py | ||
lint: | ||
working_directory: ~/django-data-seeder | ||
docker: | ||
- image: circleci/python:3.6.4 | ||
steps: | ||
- checkout | ||
- run: | ||
name: install python depedencies | ||
command: | | ||
sudo virtualenv venv | ||
source venv/bin/activate | ||
- run: | ||
name: install linter | ||
command: | | ||
sudo pip install flake8 | ||
- run: | ||
name: run linter | ||
command: | | ||
flake8 data_seeder | ||
deploy: | ||
working_directory: ~/django-data-seeder | ||
docker: | ||
- image: circleci/python:3.6.4 | ||
steps: | ||
- checkout | ||
- run: | ||
name: install python depedencies | ||
command: | | ||
sudo virtualenv venv | ||
source venv/bin/activate | ||
- run: | ||
name: install setuptools | ||
command: | | ||
sudo pip install setuptools wheel | ||
- run: | ||
name: verify git tag vs. version | ||
command: | | ||
python setup.py verify | ||
- run: | ||
name: init .pypirc | ||
command: | | ||
echo -e "[pypi]" >> ~/.pypirc | ||
echo -e "username = __token__" >> ~/.pypirc | ||
echo -e "password = $PYPI_PASSWORD" >> ~/.pypirc | ||
- run: | ||
name: create packages | ||
command: | | ||
python setup.py sdist bdist_wheel twine | ||
- run: | ||
name: upload to pypi | ||
command: | | ||
python twine upload dist/* | ||
workflows: | ||
version: 2 | ||
test_and_lint: | ||
build: | ||
jobs: | ||
- test | ||
- lint | ||
- deploy: | ||
requires: | ||
- test | ||
- lint | ||
filters: | ||
tags: | ||
only: /v[0-9]+(\.[0-9]+)*/ | ||
branches: | ||
ignore: /.*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters