diff --git a/.nengobones.yml b/.nengobones.yml index e6e7008..676981e 100644 --- a/.nengobones.yml +++ b/.nengobones.yml @@ -77,6 +77,10 @@ travis_yml: env: NUMPY: numpy==1.16 - script: docs + pypi_user: tbekolay + deploy_dists: + - sdist + - bdist_wheel ci_scripts: - template: static @@ -89,6 +93,7 @@ ci_scripts: pip_install: - $NUMPY - template: docs + - template: deploy codecov_yml: {} diff --git a/.travis.yml b/.travis.yml index edaba06..a1f00b6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,6 +47,27 @@ jobs: apt: packages: - pandoc + - stage: deploy + if: branch =~ ^release-candidate-* OR tag =~ ^v[0-9]* + env: SCRIPT="deploy" + cache: false + deploy: + - provider: pypi + server: https://test.pypi.org/legacy/ + user: tbekolay + password: $PYPI_TOKEN + distributions: "sdist bdist_wheel " + on: + all_branches: true + condition: $TRAVIS_BRANCH =~ ^release-candidate-* + condition: $TRAVIS_TAG = "" + - provider: pypi + user: tbekolay + password: $PYPI_TOKEN + distributions: "sdist bdist_wheel " + on: + all_branches: true + condition: $TRAVIS_TAG =~ ^v[0-9]* before_install: # export travis_terminate for use in scripts