2015-03-15 23:35:10 -03:00
|
|
|
language: python
|
2016-10-19 17:00:58 -04:00
|
|
|
env:
|
2016-10-20 19:48:38 -04:00
|
|
|
global:
|
|
|
|
- secure: "pvQHCsdcIRjwNvsBrZxP8cZWEwug0+PLg1T8841ZLkMdCaO3YheqmxF1xGjAqty6hLppz6vX1LFEKmPjKurLL0/i+be6MhT8/ZikFpSan7TdNUqISxeFx31ls+QpuFKzCV7ZEx7C1ms8LPWEGmzMMN6bCtOBVtGznD9KKWZmLlA="
|
2016-07-16 11:09:20 -07:00
|
|
|
matrix:
|
|
|
|
include:
|
2016-09-17 13:02:58 -07:00
|
|
|
- os: linux
|
2017-02-12 12:05:32 -05:00
|
|
|
python: 3.5
|
|
|
|
env:
|
2017-01-08 22:56:51 -05:00
|
|
|
- MINICONDA_OS="Linux"
|
2017-02-12 12:05:32 -05:00
|
|
|
- CI=true
|
|
|
|
- TRAVIS=true
|
2017-01-08 22:56:51 -05:00
|
|
|
- os: linux
|
|
|
|
python: 3.6
|
2017-02-12 12:05:32 -05:00
|
|
|
env:
|
2017-01-08 22:56:51 -05:00
|
|
|
- MINICONDA_OS="Linux"
|
2016-09-17 13:02:58 -07:00
|
|
|
- BUILD_DOCS=true
|
2016-07-26 14:16:23 -04:00
|
|
|
- os: linux
|
|
|
|
python: "nightly"
|
2016-07-16 11:09:20 -07:00
|
|
|
- os: osx
|
2016-07-23 10:47:22 -04:00
|
|
|
language: generic
|
|
|
|
env: PYTHON="3.4" MINICONDA_OS="MacOSX"
|
2016-07-22 12:44:51 -04:00
|
|
|
- os: osx
|
2016-07-23 10:47:22 -04:00
|
|
|
language: generic
|
2016-07-24 10:05:23 -04:00
|
|
|
env: PYTHON="3.5" MINICONDA_OS="MacOSX"
|
2016-10-11 08:46:58 -04:00
|
|
|
allow_failures:
|
|
|
|
- python: "nightly"
|
2016-07-22 15:38:16 +02:00
|
|
|
|
2016-07-23 10:47:22 -04:00
|
|
|
before_install:
|
2016-10-11 12:09:56 -04:00
|
|
|
- if [[ ! ("$TRAVIS_PYTHON_VERSION" == "nightly" || "$TRAVIS_PYTHON_VERSION" == "3.6-dev") && ! $BUILD_DOCS ]]; then
|
2016-07-23 10:47:22 -04:00
|
|
|
URL="https://repo.continuum.io/miniconda/Miniconda3-latest-${MINICONDA_OS}-x86_64.sh";
|
|
|
|
wget "${URL}" -O miniconda.sh;
|
2016-07-22 12:57:04 -04:00
|
|
|
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
|
2016-07-22 12:44:51 -04:00
|
|
|
|
2016-07-23 10:47:22 -04:00
|
|
|
install:
|
2016-09-17 13:02:58 -07:00
|
|
|
- if [[ $BUILD_DOCS = true ]]; then
|
|
|
|
python setup.py install;
|
|
|
|
pip install -r requirements-docs.txt;
|
2016-12-31 14:30:54 -05:00
|
|
|
pip install pygments prompt_toolkit ply psutil ipykernel matplotlib;
|
|
|
|
pip install git+https://github.com/drdoctr/doctr.git@master;
|
2016-07-23 11:32:40 -04:00
|
|
|
else
|
2016-07-26 10:01:23 -04:00
|
|
|
pip install -r requirements-tests.txt;
|
2016-07-23 11:32:40 -04:00
|
|
|
fi
|
2016-09-08 11:48:06 -07:00
|
|
|
|
2016-12-15 13:07:31 -05:00
|
|
|
before_script:
|
|
|
|
- rvm get head || true
|
2016-07-22 15:38:16 +02:00
|
|
|
|
2015-03-15 23:35:10 -03:00
|
|
|
script:
|
2016-12-13 17:05:38 -05:00
|
|
|
- set -e
|
2016-09-17 13:02:58 -07:00
|
|
|
- if [[ $BUILD_DOCS = true ]]; then
|
|
|
|
cd docs;
|
|
|
|
make html;
|
2016-10-19 17:00:58 -04:00
|
|
|
cd ..;
|
2016-10-20 18:12:54 -04:00
|
|
|
doctr deploy --deploy-repo xonsh/xonsh-docs --gh-pages-docs dev;
|
2016-12-21 09:23:57 -05:00
|
|
|
git checkout $(git describe --tags `git rev-list --tags --max-count=1`);
|
|
|
|
cd docs;
|
2016-12-23 18:42:45 -05:00
|
|
|
make clean html;
|
2016-12-21 09:23:57 -05:00
|
|
|
cd ..;
|
|
|
|
doctr deploy --deploy-repo xonsh/xonsh-docs --gh-pages-docs .;
|
2016-07-26 10:11:30 -04:00
|
|
|
else
|
2017-02-12 12:17:17 -05:00
|
|
|
py.test --timeout=10;
|
2016-10-12 08:32:20 -04:00
|
|
|
fi
|
2016-10-21 07:42:50 -04:00
|
|
|
|