Skip to content

Commit

Permalink
Ensure pip packages are built
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Oct 12, 2018
1 parent 1ed8b09 commit 2cd74d0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .travis.yml
Expand Up @@ -25,6 +25,11 @@ stages:
if: tag =~ ^v(\d+|\.)+[^a-z]\d+$
- name: docs
if: (branch = master) AND (type != pull_request)
- name: pip_dev_package
if: tag =~ ^v(\d+|\.)*[a-z]\d*$
- name: pip_package
if: tag =~ ^v(\d+|\.)*[^a-z]\d*$


jobs:
include:
Expand Down Expand Up @@ -68,12 +73,29 @@ jobs:
- doit package_build $CHANS $PKG_TEST_PYTHON --test-group=unit
script: doit package_upload --token=$ANACONDA_TOKEN $LABELS

- <<: *default
stage: pip_dev_package
env: PYPI="https://test.pypi.org/legacy/" TRAVIS_NOCACHE=$TRAVIS_JOB_ID
install:
- doit develop_install $CHANS_DEV -o tests && pip uninstall -y panel
- doit pip_on_conda
- doit ecosystem=pip package_build --test-python=py36 --test-group=unit
script: doit ecosystem=pip package_upload -u $TPPU -p $TPPP -r ${PYPI}

## release packages

- <<: *conda_pkg
stage: conda_package
env: DESC="" TRAVIS_NOCACHE=$TRAVIS_JOB_ID LABELS=$LABELS_REL CHANS=$CHANS_REL

- <<: *default
stage: pip_package
env: PYPI="https://upload.pypi.org/legacy/" TRAVIS_NOCACHE=$TRAVIS_JOB_ID
install:
- doit develop_install $CHANS -o tests && pip uninstall -y panel
- doit pip_on_conda
- doit ecosystem=pip package_build --test-python=py36 --test-group=unit
script: doit ecosystem=pip package_upload -u $PPU -p $PPP -r ${PYPI}

########## DOCS ##########

Expand Down

0 comments on commit 2cd74d0

Please sign in to comment.