mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
49 lines
No EOL
1.4 KiB
YAML
49 lines
No EOL
1.4 KiB
YAML
language: python
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
python: 3.5
|
|
env:
|
|
- BUILD_DOCS=true
|
|
- os: linux
|
|
python: "nightly"
|
|
- os: osx
|
|
language: generic
|
|
env: PYTHON="3.4" MINICONDA_OS="MacOSX"
|
|
- os: osx
|
|
language: generic
|
|
env: PYTHON="3.5" MINICONDA_OS="MacOSX"
|
|
|
|
before_install:
|
|
- if [[ ! "$TRAVIS_PYTHON_VERSION" == "nightly" && ! $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;
|
|
elif [[ ! "$TRAVIS_PYTHON_VERSION" == "nightly" ]]; then
|
|
conda create -q -n test_env python=${PYTHON} pygments prompt_toolkit ply pytest pytest-timeout psutil;
|
|
source activate test_env;
|
|
python setup.py install;
|
|
else
|
|
pip install -r requirements-tests.txt;
|
|
fi
|
|
|
|
|
|
script:
|
|
- if [[ $BUILD_DOCS = true ]]; then
|
|
cd docs;
|
|
make html;
|
|
else
|
|
py.test --timeout=10;
|
|
fi |