Skip to content

Commit

Permalink
bugfix: travis/build-doc seems to produce *.c files interfering with …
Browse files Browse the repository at this point in the history
…doctr
  • Loading branch information
Benjamin Winkel committed Jul 13, 2017
1 parent 3be72b2 commit 5ba5852
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,25 @@ install:
script:
- $MAIN_CMD $SETUP_CMD
- echo "DO_DOCS" $DO_DOCS
- if [[ $DO_DOCS ]]; then set -e; conda install doctr; doctr deploy .;fi
# also have to remove the c-files, generated during build
- 'if [[ $DO_DOCS ]]; then
set -e;
conda install doctr;
git reset --hard HEAD;
doctr deploy . --built-docs docs/;
fi'

after_success:
# If coveralls.io is set up for this package, uncomment the line below.
# The coveragerc file may be customized as needed for your package.
- if [[ $SETUP_CMD == *coverage* ]]; then coveralls --rcfile='pycraf/tests/coveragerc'; fi
- 'if [[ $SETUP_CMD == *coverage* ]]; then
coveralls --rcfile="pycraf/tests/coveragerc";
fi'

- echo "TRAVIS_TAG" $TRAVIS_TAG
- echo "DO_DIST" $DO_DIST
- if [[ $TRAVIS_TAG && $DO_DIST ]]; then conda install twine; python setup.py sdist; python -m twine upload dist/*.tar.gz; fi
- 'if [[ $TRAVIS_TAG && $DO_DIST ]]; then
conda install twine;
python setup.py sdist;
python -m twine upload dist/*.tar.gz;
fi'

0 comments on commit 5ba5852

Please sign in to comment.