xonsh/.travis.yml
2016-10-19 17:01:39 -04:00

55 lines
1.6 KiB
YAML

language: python
env:
global:
- secure: "sGfmJ0ucDUzH8///i7Vm0TMjA9klS8qAXK2XDSZfHP/EndBvjqNn9+5AQzPm5NXO5J4KaTTy27fwoy5InWtL1MdPf7lRDRHTS+hObmOxeNO2O9TajuEurn0mE8C9Y6EuOl6py/slPaUEjkT4rHPTt/rQJmhYtx0iaNrPmbaVE+g="
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
script:
- if [[ $BUILD_DOCS = true ]]; then
cd docs;
make html;
cd ..;
doctr deploy --deploy-repo xonsh/xonsh.github.io --gh-pages-docs dev;
else
py.test --timeout=10;
fi