xonsh/.travis.yml
Gil Forsyth 1a6c15b2ce checkout HEAD before attempting second deploy
I think the errors that doctr encounters when pushing the second set of
docs has to do with trying to add to the gh-pages branch when we're
starting from non-HEAD location?

I'm hoping that by manually putting us back onto HEAD that this should
avoid that...

If this does work, it's probably worth putting into doctr itself.

Usually caveats that we can't test this until it's merged...
2016-12-23 18:42:45 -05:00

65 lines
1.9 KiB
YAML

language: python
env:
global:
- secure: "pvQHCsdcIRjwNvsBrZxP8cZWEwug0+PLg1T8841ZLkMdCaO3YheqmxF1xGjAqty6hLppz6vX1LFEKmPjKurLL0/i+be6MhT8/ZikFpSan7TdNUqISxeFx31ls+QpuFKzCV7ZEx7C1ms8LPWEGmzMMN6bCtOBVtGznD9KKWZmLlA="
matrix:
include:
- os: linux
python: 3.5
env:
- BUILD_DOCS=true
- os: linux
python: "nightly"
- os: linux
python: "3.6-dev"
- os: osx
language: generic
env: PYTHON="3.4" MINICONDA_OS="MacOSX"
- os: osx
language: generic
env: PYTHON="3.5" MINICONDA_OS="MacOSX"
allow_failures:
- python: "nightly"
- python: "3.6-dev"
before_install:
- if [[ ! ("$TRAVIS_PYTHON_VERSION" == "nightly" || "$TRAVIS_PYTHON_VERSION" == "3.6-dev") && ! $BUILD_DOCS ]]; then
URL="https://repo.continuum.io/miniconda/Miniconda3-latest-${MINICONDA_OS}-x86_64.sh";
wget "${URL}" -O miniconda.sh;
bash miniconda.sh -b -p $HOME/miniconda;
export PATH="$HOME/miniconda/bin:$PATH";
hash -r;
conda config --set always_yes yes --set changeps1 no;
conda update -q conda;
conda info -a;
fi
install:
- if [[ $BUILD_DOCS = true ]]; then
python setup.py install;
pip install -r requirements-docs.txt;
pip install pygments prompt_toolkit ply psutil ipykernel matplotlib doctr;
else
pip install -r requirements-tests.txt;
fi
before_script:
- rvm get head || true
script:
- set -e
- if [[ $BUILD_DOCS = true ]]; then
cd docs;
make html;
cd ..;
doctr deploy --deploy-repo xonsh/xonsh-docs --gh-pages-docs dev;
git checkout $(git describe --tags `git rev-list --tags --max-count=1`);
cd docs;
make clean html;
cd ..;
git checkout HEAD;
doctr deploy --deploy-repo xonsh/xonsh-docs --gh-pages-docs .;
else
py.test --timeout=10;
fi