2015-03-15 23:35:10 -03:00
|
|
|
language: python
|
2016-07-16 11:09:20 -07:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
python: "nightly"
|
|
|
|
- os: linux
|
2016-07-23 10:22:09 -04:00
|
|
|
python: 3.4
|
2016-07-16 11:09:20 -07:00
|
|
|
- os: linux
|
2016-07-23 10:22:09 -04:00
|
|
|
python: 3.5
|
2016-07-16 11:09:20 -07:00
|
|
|
- os: osx
|
2016-07-23 10:22:09 -04:00
|
|
|
python: 3.4
|
2016-07-22 12:44:51 -04:00
|
|
|
- os: osx
|
2016-07-23 10:22:09 -04:00
|
|
|
python: 3.5
|
2016-07-22 15:38:16 +02:00
|
|
|
|
2016-07-22 15:50:55 +02:00
|
|
|
install:
|
2016-07-22 12:44:51 -04:00
|
|
|
- if [[ ! "$TRAVIS_PYTHON_VERSION" == "nightly" ]]; then
|
2016-07-22 12:57:04 -04:00
|
|
|
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -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
|
2016-07-22 12:44:51 -04:00
|
|
|
|
2016-07-23 10:22:09 -04:00
|
|
|
- if [[ "$TRAVIS_PYTHON_VERSION" == 3.4 ]]; then
|
2016-07-22 16:40:40 -04:00
|
|
|
conda install -y python=3.4 pygments prompt_toolkit ply pytest pytest-cov pytest-timeout;
|
2016-07-22 12:44:51 -04:00
|
|
|
pip install pytest-flake8 codecov;
|
|
|
|
python setup.py install;
|
2016-07-23 10:22:09 -04:00
|
|
|
elif [[ "$TRAVIS_PYTHON_VERSION" == 3.5 ]]; then
|
2016-07-22 16:40:40 -04:00
|
|
|
conda install -y python=3.5 pygments prompt_toolkit ply pytest pytest-cov pytest-timeout;
|
2016-07-22 12:44:51 -04:00
|
|
|
pip install pytest-flake8 codecov;
|
|
|
|
python setup.py install;
|
|
|
|
else
|
|
|
|
pip install --upgrade -r requirements-tests.txt;
|
|
|
|
fi
|
2016-07-22 15:38:16 +02:00
|
|
|
|
2015-03-15 23:35:10 -03:00
|
|
|
script:
|
2016-07-22 11:09:50 +02:00
|
|
|
- py.test --flake8 --cov=. --cov-report=term --timeout=10
|
2016-07-22 15:38:16 +02:00
|
|
|
|
2016-06-06 19:43:21 -07:00
|
|
|
after_success:
|
|
|
|
- codecov
|