mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-05-22 21:46:17 +03:00
Add condition to trigger build on tags
This commit is contained in:
parent
8ee8f39155
commit
1879b82e84
11
.travis.yml
11
.travis.yml
|
@ -54,7 +54,16 @@ jobs:
|
||||||
env: TOXENV=pypy3
|
env: TOXENV=pypy3
|
||||||
install: pip install tox
|
install: pip install tox
|
||||||
script: tox
|
script: tox
|
||||||
|
- python: 3.8
|
||||||
|
if: tag IS present
|
||||||
|
install:
|
||||||
|
- pip install pip --upgrade
|
||||||
|
- pip install twine --upgrade
|
||||||
|
script:
|
||||||
|
- python setup.py sdist
|
||||||
|
- twine upload dist/*
|
||||||
- services: docker
|
- services: docker
|
||||||
|
if: tag IS present
|
||||||
env: TWINE_USERNAME=__token__
|
env: TWINE_USERNAME=__token__
|
||||||
install: python3 -m pip install cibuildwheel==1.5.1
|
install: python3 -m pip install cibuildwheel==1.5.1
|
||||||
script: python3 -m cibuildwheel --output-dir wheelhouse
|
script: python3 -m cibuildwheel --output-dir wheelhouse
|
||||||
|
@ -65,6 +74,7 @@ jobs:
|
||||||
python3 -m twine upload --repository testpypi wheelhouse/*.whl
|
python3 -m twine upload --repository testpypi wheelhouse/*.whl
|
||||||
fi
|
fi
|
||||||
- os: osx
|
- os: osx
|
||||||
|
if: tag IS present
|
||||||
language: shell
|
language: shell
|
||||||
env: TWINE_USERNAME=__token__
|
env: TWINE_USERNAME=__token__
|
||||||
install: python3 -m pip install cibuildwheel==1.5.1
|
install: python3 -m pip install cibuildwheel==1.5.1
|
||||||
|
@ -76,6 +86,7 @@ jobs:
|
||||||
python3 -m twine upload --repository testpypi wheelhouse/*.whl
|
python3 -m twine upload --repository testpypi wheelhouse/*.whl
|
||||||
fi
|
fi
|
||||||
- os: windows
|
- os: windows
|
||||||
|
if: tag IS present
|
||||||
language: shell
|
language: shell
|
||||||
env: TWINE_USERNAME=__token__
|
env: TWINE_USERNAME=__token__
|
||||||
before_install:
|
before_install:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user