mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-29 22:16:13 +02:00
Add Poetry config
Add deployment through poetry to travis
This commit is contained in:
parent
1affb9b7b5
commit
a61658d453
8 changed files with 549 additions and 141 deletions
24
.travis.yml
24
.travis.yml
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue