2015-04-08 19:04:54 +02:00
|
|
|
language: python
|
2015-09-06 01:13:44 +03:00
|
|
|
sudo: false
|
2015-04-08 19:04:54 +02:00
|
|
|
python:
|
2015-08-26 18:07:46 +02:00
|
|
|
- "3.5"
|
2015-04-08 19:04:54 +02:00
|
|
|
- "3.4"
|
2015-04-17 16:24:03 +02:00
|
|
|
- "3.3"
|
|
|
|
- "2.7"
|
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
|
2015-04-08 19:04:54 +02:00
|
|
|
install:
|
2016-01-29 12:03:47 +03:00
|
|
|
- pip install -U pip
|
|
|
|
- pip install -U coveralls
|
|
|
|
- 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-06-28 03:05:42 +03:00
|
|
|
- export RUN_TESTS="coverage run --source=thefuck,tests -m py.test -v --capture=sys"
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then $RUN_TESTS --enable-functional; fi
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 3.5 ]]; then $RUN_TESTS; fi
|
2016-06-27 23:48:26 +03:00
|
|
|
after_success:
|
|
|
|
- coveralls
|