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:
|
2018-10-08 22:32:30 +02:00
|
|
|
- os: linux
|
|
|
|
dist: xenial
|
|
|
|
python: "nightly"
|
|
|
|
- os: linux
|
|
|
|
dist: xenial
|
|
|
|
python: "3.8-dev"
|
|
|
|
- os: linux
|
|
|
|
dist: xenial
|
|
|
|
python: "3.7-dev"
|
2018-08-14 01:22:53 +03:00
|
|
|
- os: linux
|
|
|
|
dist: xenial
|
|
|
|
python: "3.7"
|
2018-10-08 22:32:30 +02:00
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
python: "3.6-dev"
|
2017-01-08 17:13:22 +02:00
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
python: "3.6"
|
2016-08-14 07:16:22 +03:00
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
python: "3.5"
|
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
python: "3.4"
|
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
python: "2.7"
|
|
|
|
- os: osx
|
|
|
|
language: generic
|
2018-10-08 22:32:30 +02:00
|
|
|
allow_failures:
|
|
|
|
- python: nightly
|
|
|
|
- python: 3.8-dev
|
|
|
|
- python: 3.7-dev
|
|
|
|
- python: 3.6-dev
|
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:
|
2018-11-21 19:31:59 +01:00
|
|
|
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then rm -rf /usr/local/include/c++; fi
|
|
|
|
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then brew update; fi
|
2018-03-19 23:26:35 +01:00
|
|
|
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then brew upgrade python; fi
|
|
|
|
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then pip3 install virtualenv; fi
|
|
|
|
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then virtualenv venv -p python3; fi
|
2016-08-14 07:16:22 +03:00
|
|
|
- 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:
|
2016-10-05 11:00:39 -04:00
|
|
|
- flake8
|
2015-07-19 21:57:19 +03:00
|
|
|
- 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"
|
2018-08-14 01:22:53 +03:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == 3.7 && $TRAVIS_OS_NAME != "osx" ]]; then $RUN_TESTS --enable-functional; fi
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 3.7 || $TRAVIS_OS_NAME == "osx" ]]; then $RUN_TESTS; fi
|
2016-06-27 23:48:26 +03:00
|
|
|
after_success:
|
2018-08-14 01:22:53 +03:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == 3.7 && $TRAVIS_OS_NAME != "osx" ]]; then coveralls; fi
|