diff --git a/.travis.yml b/.travis.yml index d2497bae..d9d6daf5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,8 +24,6 @@ matrix: group: edge dist: focal language: generic - env: - - PYTHON_VERSION=3.8.5 before_cache: # Cleanup to avoid the cache to grow indefinitely as new package versions are released @@ -75,6 +73,8 @@ install: - | if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ci install + elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then + pip install twine fi script: @@ -88,12 +88,12 @@ after_success: if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ci after_test fi - pwd && ls dist + pwd && ls dist; PATH=~/.pyenv/versions/${PYTHON_VERSION}/bin/:$PATH && twine --version deploy: # deploy-release - provider: script - script: pwd && ls dist;echo "deploy-release" && ~/.pyenv/versions/${PYTHON_VERSION}/bin/twine upload -u $PYPI_USER -p $PYPI_PASSWORD --skip-existing dist/* + script: pwd && ls dist;echo "deploy-release" && PATH=~/.pyenv/versions/${PYTHON_VERSION}/bin/:$PATH && twine upload -u $PYPI_USER -p $PYPI_PASSWORD --skip-existing dist/* skip_cleanup: true on: repo: ${TRAVIS_REPO_SLUG}