-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
38 lines (38 loc) · 1.11 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
36
37
38
language: python
python:
# - "2.6" # error: no register_namespace in xml.etree.ElementTree
- "2.7"
# - "3.2" # error: coverage doesn't work
# - "3.3" # error: pytest doesn't work
- "3.4"
- "3.5"
- "3.6"
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
- export USE_VIRTUALENV=true
- 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