forked from mbj4668/pyang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (36 loc) · 980 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.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" # error: lxml doesn't work
# - "3.5" # error: coverage doesn't work
- "3.6"
- "3.7"
- "3.8"
addons:
apt:
packages:
- xsltproc
- jing
- libxml2-utils
- bash
install:
- pip install -r requirements.txt
- pip install -r dev-requirements.txt
script:
- source env.sh
- export USE_VIRTUALENV=true
- make pylint test TEST_MODE=coverage
- 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