Attempt to export acceptance tests coverage results to coveralls

This commit is contained in:
Alexander Kukushkin
2016-03-13 09:09:31 +01:00
parent 6985df3aca
commit 62f11ab747
4 changed files with 13 additions and 7 deletions
+6 -5
View File
@@ -3,7 +3,8 @@ language: python
addons:
postgresql: "9.5"
env:
- BOTO_CONFIG='' ETCDVERSION=2.2.5
- TEST_SUITE="python setup.py test"
- TEST_SUITE="behave"
python:
- "2.7"
- "3.4"
@@ -19,12 +20,12 @@ install:
- sudo /etc/init.d/postgresql stop
- if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then pip install -r requirements-py2.txt --use-mirrors; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3* ]]; then pip install -r requirements-py3.txt; fi
- curl -L https://github.com/coreos/etcd/releases/download/v${ETCDVERSION}/etcd-v${ETCDVERSION}-linux-amd64.tar.gz | tar xz -C . --strip=1 --wildcards --no-anchored etcd
- pip install behave coveralls codacy-coverage
- ETCDVERSION=2.2.5 curl -L https://github.com/coreos/etcd/releases/download/v${ETCDVERSION}/etcd-v${ETCDVERSION}-linux-amd64.tar.gz | tar xz -C . --strip=1 --wildcards --no-anchored etcd
- pip install behave codacy-coverage coverage coveralls
script:
- python setup.py test
- BOTO_CONFIG='' PATH=.:$PATH $TEST_SUITE
- python setup.py flake8
- PATH=.:$PATH behave
after_success:
- coveralls
- python-codacy-coverage -r coverage.xml
- if [[ -f coverage.xml ]]; then python-codacy-coverage -r coverage.xml; fi