forked from sk-/git-lint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (34 loc) · 866 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
language: python
python:
- 2.7
- 3.5
- 3.6
# The JSON e2e test fails because, the output and exceptions are different
# - "pypy"
matrix:
include:
- python: 3.7
dist: xenial # required for Python >= 3.7 (travis-ci/travis-ci#9069)
cache: pip
# command to install dependencies
install:
- pip install .[dev,test] coveralls
- bash scripts/install-linters.sh
# command to run tests
before_script:
- export PATH=$PATH:/tmp/pmd-bin/bin:/usr/local/bin
- git config --global user.email "[email protected]"
- git config --global user.name "John Doe"
script:
- env | grep TRAVIS
- nosetests
- >
yapf --parallel --recursive --diff . ||
( ! echo "Run yapf before committing (yapf -pri .)" )
- >
git reset --soft ${TRAVIS_COMMIT_RANGE%...*} &&
git status &&
git log | head -n 1 &&
git lint
after_success:
coveralls