Skip to content

Commit

Permalink
Update travis to use twine to check package docs
Browse files Browse the repository at this point in the history
  • Loading branch information
drdavella committed Nov 15, 2018
1 parent d2b7dba commit 47a183a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ env:
# Make sure that installation does not fail
- SETUP_CMD='install'
# Make sure README will display properly on pypi
- PIP_DEPENDENCIES='collective.checkdocs pygments' SETUP_CMD='checkdocs'
- PIP_DEPENDENCIES='twine' TWINE_CHECK=1
- PYTHON_VERSION=3.5 SETUP_CMD='test'
- PYTHON_VERSION=3.6 SETUP_CMD='test'
- PYTHON_VERSION=3.7 PYTEST_VERSION=3.8 SETUP_CMD='test'
Expand Down Expand Up @@ -89,7 +89,12 @@ install:
- python setup.py install

script:
- $MAIN_CMD $SETUP_CMD
- if [[ $TWINE_CHECK ]]; then
python setup.py build sdist;
twine check dist/*;
else
$MAIN_CMD $SETUP_CMD
fi

after_success:
# If coveralls.io is set up for this package, uncomment the line
Expand Down

0 comments on commit 47a183a

Please sign in to comment.