jrnl/.travis.yml
Peter Schmidbauer 3c68eaf98d
Prepare travis for upcoming poetry 1.0 release
The poetry version command will change in poetry 1.0 (see sdispater/poetry#1191). Without any argument, it won't bump the version anymore but instead just print the current version. This will break the current travis before_install. Let's pin poetry to ~0.12.17 for now and change it once poetry v1.0 releases.
2019-10-26 23:00:06 +02:00

24 lines
580 B
YAML

dist: xenial # required for Python >= 3.7
language: python
python: "3.7"
before_install:
- pip install poetry~=0.12.17
install:
# we run `poetry version` here to appease poetry about '0.0.0-source'
- poetry version
- poetry install
script:
- poetry run python --version
- poetry run behave
before_deploy:
- pip install poetry~=0.12.17
- poetry config http-basic.pypi $PYPI_USER $PYPI_PASS
- poetry version $TRAVIS_TAG
- poetry build
deploy:
- provider: script
script: poetry publish
skip_cleanup: true
on:
branch: master
tags: true