Add Poetry config

Add deployment through poetry to travis
This commit is contained in:
Manuel Ebert 2019-07-07 20:41:18 -07:00
parent 1affb9b7b5
commit a61658d453
8 changed files with 549 additions and 141 deletions

View file

@ -1,11 +1,21 @@
dist: xenial # required for Python >= 3.7
language: python
python:
- "3.7"
python: "3.7"
before_install:
- pip install poetry
install:
- "pip install -e ."
- "pip install -q behave"
# command to run tests
- poetry install
script:
- python --version
- behave
- poetry run python --version
- poetry run behave
before_deploy:
- pip install poetry
- poetry config http-basic.pypi $PYPI_USER $PYPI_PASS
- poetry build
deploy:
provider: script
script: poetry publish
skip_cleanup: true
on:
branch: master
tags: true