blob: 87965b4abf87a358a6a1b176c975db15c284aa01 [file] [log] [blame]
Bill Wendlingb28c35b2015-03-18 14:06:09 -07001language: python
Bill Wendling579f8b32015-04-05 02:20:06 -07002
Bill Wendlingb28c35b2015-03-18 14:06:09 -07003python:
Pawel Polewicz74f7de12016-05-26 13:01:25 +02004 - 2.7
5 - 3.4
6 - 3.5
7 - nightly
8
9matrix:
10 allow_failures:
11 - python: nightly
Pawel Polewicz7328e4b2016-05-26 13:03:34 +020012 include:
13 - python: 2.7
14 env: SCA=true
15 - python: 3.5
16 env: SCA=true
Eli Bendersky35d5dfc2015-03-20 15:11:40 -070017
Bill Wendling579f8b32015-04-05 02:20:06 -070018install:
Pawel Polewicz7328e4b2016-05-26 13:03:34 +020019 - if [ -z "$SCA" ]; then pip install --quiet coveralls; else echo skip; fi
20 - if [ -n "$SCA" ]; then python setup.py develop; else echo skip; fi
Bill Wendling579f8b32015-04-05 02:20:06 -070021
Bill Wendling2e6c8d42015-04-05 02:13:42 -070022script:
Pawel Polewicz7328e4b2016-05-26 13:03:34 +020023 - if [ -n "$SCA" ]; then yapf --diff --recursive . || exit; else echo skip; fi
24 - if [ -z "$SCA" ]; then nosetests --with-coverage --cover-package=yapf; else echo skip; fi
Bill Wendling2e6c8d42015-04-05 02:13:42 -070025
26after_success:
Andy Haydenfca09e22015-04-16 22:47:11 -070027 - coveralls