forked from mbj4668/pyang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (35 loc) · 1.03 KB
/
.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
language: python
python:
# - "2.6" # error: no register_namespace in xml.etree.ElementTree
- "2.7"
# - "3.2" # error: coverage doesn't work
- "3.3"
- "3.4"
addons:
apt:
packages:
- xsltproc
- jing
- libxml2-utils
- bash
install:
- pip install -r requirements.txt
- pip install coveralls virtualenv
- SITEPACKAGES=$(pip --version | sed -n 's@.*from \([^ ]\+\) .*@\1@p')
- echo 'import coverage; coverage.process_startup()' > $SITEPACKAGES/sitecustomize.py
- printf '[run]\nparallel=True\n' > ~/coverage.cfg
script:
- source env.sh
- export COVERAGE_PROCESS_START=~/coverage.cfg
- make test
- find . -name '.coverage*' -exec mv -t . {} +
- coverage combine
# Test .gitignore for tests:
- TMP=$(tempfile)
- git ls-files . --exclude-standard --others | tee "$TMP"
- if test -s "$TMP"; then false; else true; fi
# Test if we .gitignore any tracked files:
- git ls-files -i --exclude-standard | tee "$TMP"
- if test -s "$TMP"; then false; else true; fi
after_success:
- coveralls