[#681] Separate local dev from pipeline releases

This commit is contained in:
Jonathan Wren 2019-10-19 14:36:12 -07:00
parent 0f59c41712
commit a25d816fa1
2 changed files with 14 additions and 18 deletions

View file

@ -8,18 +8,22 @@ install:
- poetry version
- poetry install
script:
- poetry run python --version
- poetry run behave
- poetry run python --version
- poetry run behave
before_deploy:
- pip install poetry
- poetry config http-basic.pypi $PYPI_USER $PYPI_PASS
- poetry version $TRAVIS_TAG
- make build
- poetry build
deploy:
provider: script
script: make release
skip_cleanup: true
draft: true
on:
branch: master
tags: true
- provider: script
script: poetry publish
skip_cleanup: true
on:
branch: master
tags: true
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
on:
branch: master

View file

@ -13,10 +13,6 @@ clean:
html:
poetry run mkdocs serve
# Build GitHub Page from docs
docs:
poetry run mkdocs gh-deploy
format: ## check style with flake8
poetry run black features jrnl
@ -29,9 +25,5 @@ test: ## Run behave tests
build:
poetry build
release:
poetry publish
poetry run mkdocs gh-deploy
install: clean ## install the package to the active Python's site-packages
poetry install