mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
[#757] Move deploy to it's own stage on CI so it doesn't run multiple
times
This commit is contained in:
parent
58ddee3b49
commit
424e67e23a
1 changed files with 20 additions and 18 deletions
36
.travis.yml
36
.travis.yml
|
@ -30,23 +30,7 @@ jobs:
|
|||
- pip install poetry~=0.12.17
|
||||
env:
|
||||
- PATH=/c/Python37:/c/Python37/Scripts:$PATH
|
||||
allow_failures:
|
||||
- python: 3.8
|
||||
- python: nightly
|
||||
- os: windows
|
||||
git:
|
||||
depth: false
|
||||
cache: pip
|
||||
before_install:
|
||||
- date
|
||||
- pip install poetry~=0.12.17
|
||||
install:
|
||||
# we run `poetry version` here to appease poetry about '0.0.0-source'
|
||||
- poetry version
|
||||
- poetry install
|
||||
- poetry run python --version
|
||||
script:
|
||||
- poetry run behave
|
||||
- stage: "Deploy"
|
||||
before_deploy:
|
||||
- poetry config http-basic.pypi $PYPI_USER $PYPI_PASS
|
||||
- poetry version $TRAVIS_TAG
|
||||
|
@ -65,3 +49,21 @@ after_deploy:
|
|||
- git add pyproject.toml
|
||||
- git commit -m "Incrementing version to ${TRAVIS_TAG}"
|
||||
- git push https://${GITHUB_TOKEN}@github.com/jrnl-org/jrnl.git master
|
||||
allow_failures:
|
||||
- python: 3.8
|
||||
- python: nightly
|
||||
- os: windows
|
||||
git:
|
||||
depth: false
|
||||
cache: pip
|
||||
before_install:
|
||||
- date
|
||||
- pip install poetry~=0.12.17
|
||||
install:
|
||||
# we run `poetry version` here to appease poetry about '0.0.0-source'
|
||||
- poetry version
|
||||
- poetry install
|
||||
- poetry run python --version
|
||||
script:
|
||||
- poetry run behave
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue