forked from google/yapf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (31 loc) · 952 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
35
36
language: python
python:
- 2.7
- 3.4
- 3.5
- 3.6
- nightly
matrix:
allow_failures:
- python: nightly
- python: 3.7
include:
- python: 2.7
env: SCA=true
- python: 3.5
env: SCA=true
- python: 3.7
dist: xenial # required for Python 3.7 (travis-ci/travis-ci#9069)
sudo: required # required for Python 3.7 (travis-ci/travis-ci#9069)
- python: 3.7
dist: xenial # required for Python 3.7 (travis-ci/travis-ci#9069)
sudo: required # required for Python 3.7 (travis-ci/travis-ci#9069)
env: SCA=true
install:
- if [ -z "$SCA" ]; then pip install --quiet coveralls; else echo skip; fi
- if [ -n "$SCA" ]; then python setup.py develop; else echo skip; fi
script:
- if [ -n "$SCA" ]; then yapf --diff --recursive . || exit; else echo skip; fi
- if [ -z "$SCA" ]; then nosetests --with-coverage --cover-package=yapf; else echo skip; fi
after_success:
- coveralls