1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-18 12:06:04 +00:00

Add Python 3.7 version support (#833)

This commit is contained in:
Eugene Duboviy 2018-08-14 01:22:53 +03:00 committed by Vladimir Iakovlev
parent cc6d90963e
commit 9d46291944
3 changed files with 9 additions and 4 deletions

View File

@ -2,6 +2,10 @@ language: python
sudo: false sudo: false
matrix: matrix:
include: include:
- os: linux
dist: xenial
python: "3.7"
sudo: true
- os: linux - os: linux
dist: trusty dist: trusty
python: "3.6" python: "3.6"
@ -39,7 +43,7 @@ script:
- flake8 - flake8
- export COVERAGE_PYTHON_VERSION=python-${TRAVIS_PYTHON_VERSION:0:1} - export COVERAGE_PYTHON_VERSION=python-${TRAVIS_PYTHON_VERSION:0:1}
- export RUN_TESTS="coverage run --source=thefuck,tests -m py.test -v --capture=sys tests" - export RUN_TESTS="coverage run --source=thefuck,tests -m py.test -v --capture=sys tests"
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 && $TRAVIS_OS_NAME != "osx" ]]; then $RUN_TESTS --enable-functional; fi - if [[ $TRAVIS_PYTHON_VERSION == 3.7 && $TRAVIS_OS_NAME != "osx" ]]; then $RUN_TESTS --enable-functional; fi
- if [[ $TRAVIS_PYTHON_VERSION != 3.6 || $TRAVIS_OS_NAME == "osx" ]]; then $RUN_TESTS; fi - if [[ $TRAVIS_PYTHON_VERSION != 3.7 || $TRAVIS_OS_NAME == "osx" ]]; then $RUN_TESTS; fi
after_success: after_success:
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 && $TRAVIS_OS_NAME != "osx" ]]; then coveralls; fi - if [[ $TRAVIS_PYTHON_VERSION == 3.7 && $TRAVIS_OS_NAME != "osx" ]]; then coveralls; fi

View File

@ -6,6 +6,7 @@ environment:
- PYTHON: "C:/Python34" - PYTHON: "C:/Python34"
- PYTHON: "C:/Python35" - PYTHON: "C:/Python35"
- PYTHON: "C:/Python36" - PYTHON: "C:/Python36"
- PYTHON: "C:/Python37"
init: init:
- "ECHO %PYTHON%" - "ECHO %PYTHON%"

View File

@ -1,5 +1,5 @@
[tox] [tox]
envlist = py27,py34,py35,py36 envlist = py27,py34,py35,py36,py37
[testenv] [testenv]
deps = -rrequirements.txt deps = -rrequirements.txt