Merge pull request #2804 from xonsh/clean_doctr_build

Remove extra cleans and resets from doc builds
This commit is contained in:
Anthony Scopatz 2018-09-05 15:49:57 -04:00 committed by GitHub
commit c34f6f8a65
Failed to generate hash of commit

View file

@ -57,23 +57,17 @@ before_script:
- rvm get head || true
script:
- set -ex
- set -e
- if [[ $BUILD_DOCS = true ]]; then
git clean -fdx;
cd docs;
make html;
cd ..;
git checkout -- .;
git reset --hard HEAD;
doctr deploy --deploy-repo xonsh/xonsh-docs dev;
git checkout $(git describe --tags `git rev-list --tags --max-count=1`);
pip install --upgrade .;
git clean -fdx;
cd docs;
make clean html;
cd ..;
git checkout -- .;
git reset --hard HEAD;
doctr deploy --deploy-repo xonsh/xonsh-docs .;
else
py.test --timeout=10;