2015-03-15 23:35:10 -03:00
|
|
|
language: python
|
2016-07-16 11:09:20 -07:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
2016-07-23 10:47:22 -04:00
|
|
|
language: generic
|
|
|
|
env: PYTHON="3.4" MINICONDA_OS="Linux"
|
2016-07-16 11:09:20 -07:00
|
|
|
- os: linux
|
2016-07-23 10:47:22 -04:00
|
|
|
language: generic
|
|
|
|
env: PYTHON="3.5" MINICONDA_OS="Linux"
|
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-07-23 11:32:40 -04:00
|
|
|
- os: linux
|
|
|
|
python: "nightly"
|
2016-07-26 10:11:30 -04:00
|
|
|
env: RUN_COVERAGE=true
|
2016-07-22 15:38:16 +02:00
|
|
|
|
2016-07-23 10:47:22 -04:00
|
|
|
before_install:
|
2016-07-22 12:44:51 -04:00
|
|
|
- if [[ ! "$TRAVIS_PYTHON_VERSION" == "nightly" ]]; 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-07-23 11:32:40 -04:00
|
|
|
- if [[ ! "$TRAVIS_PYTHON_VERSION" == "nightly" ]]; then
|
2016-07-26 10:15:46 -04:00
|
|
|
conda create -q -n test_env python=${PYTHON} pygments prompt_toolkit ply pytest pytest-timeout psutil;
|
2016-07-23 11:55:26 -04:00
|
|
|
source activate test_env;
|
2016-07-23 11:32:40 -04:00
|
|
|
python setup.py install;
|
|
|
|
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-07-22 15:38:16 +02:00
|
|
|
|
2015-03-15 23:35:10 -03:00
|
|
|
script:
|
2016-07-26 10:11:30 -04:00
|
|
|
- if [ $RUN_COVERAGE = true]; then
|
|
|
|
py.test --flake8 --cov=. --cov-report=term --timeout=10;
|
|
|
|
else
|
|
|
|
py.test --timeout=10;
|
|
|
|
fi
|
2016-07-22 15:38:16 +02:00
|
|
|
|
2016-06-06 19:43:21 -07:00
|
|
|
after_success:
|
2016-07-26 10:11:30 -04:00
|
|
|
- if [$RUN_COVERAGE = true]; then
|
|
|
|
codecov;
|
|
|
|
fi
|