Skip to content

Commit de96cc8

Browse files
committed
Only build master branch and PRs on travis. Yapf only on py3.5.
1 parent 53a574b commit de96cc8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ python:
66
- "3.5"
77
- "pypy"
88
- "pypy3"
9+
branches:
10+
only:
11+
- master
912
install:
1013
- pip install coveralls
1114
- pip install -r requirements.txt
1215
- pip install -r requirements-dev.txt
1316
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy'* ]]; then pip install ujson; fi
1417
script:
1518
- nosetests -v --with-flaky --no-flaky-report --with-coverage --cover-package=telegram/
16-
- if [ $TRAVIS_PYTHON_VERSION != 3.3 ] && [ $TRAVIS_PYTHON_VERSION != pypy3 ]; then pre-commit run --all-files; fi
19+
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pre-commit run --all-files; fi
1720
after_success:
1821
coveralls

0 commit comments

Comments
 (0)