2015-04-08 19:04:54 +02:00
language : python
2015-09-06 01:13:44 +03:00
sudo : false
2016-08-14 07:16:22 +03:00
matrix :
include :
- os : linux
dist : trusty
python : "3.5"
- os : linux
dist : trusty
python : "3.4"
- os : linux
dist : trusty
python : "3.3"
- os : linux
dist : trusty
python : "2.7"
- os : osx
env : FORMULA="python"
language : generic
- os : osx
env : FORMULA="python3"
language : generic
2016-06-27 23:18:38 +03:00
services :
- docker
2016-06-28 00:38:38 +03:00
addons :
apt :
packages :
- python-commandnotfound
- python3-commandnotfound
2016-08-14 07:16:22 +03:00
before_install :
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then brew update ; fi
2016-10-29 18:07:03 -02:00
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then if brew ls --versions $FORMULA; then brew upgrade $FORMULA || echo Python is up to date; else brew install $FORMULA; fi; fi
2016-08-14 07:16:22 +03:00
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then virtualenv venv -p $FORMULA; fi
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then source venv/bin/activate; fi
2016-01-29 12:03:47 +03:00
- pip install -U pip
- pip install -U coveralls
2016-08-14 07:16:22 +03:00
install :
2016-01-29 12:03:47 +03:00
- pip install -Ur requirements.txt
2015-07-17 18:37:49 +02:00
- python setup.py develop
2015-07-20 21:24:00 +03:00
- rm -rf build
2015-07-19 21:57:19 +03:00
script :
- export COVERAGE_PYTHON_VERSION=python-${TRAVIS_PYTHON_VERSION:0:1}
2016-08-14 07:16:22 +03:00
- export RUN_TESTS="coverage run --source=thefuck,tests -m py.test -v --capture=sys tests"
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 && $TRAVIS_OS_NAME != "osx" ]]; then $RUN_TESTS --enable-functional; fi
- if [[ $TRAVIS_PYTHON_VERSION != 3.5 || $TRAVIS_OS_NAME == "osx" ]]; then $RUN_TESTS; fi
2016-06-27 23:48:26 +03:00
after_success :
- coveralls