pyang..travis.yml Maven / Gradle / Ivy
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
- 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