Use coveralls

This commit is contained in:
Markus Unterwaditzer 2014-04-02 17:41:45 +02:00
parent 0376fd40b9
commit 5302f2cb75
2 changed files with 12 additions and 5 deletions

View file

@ -3,6 +3,7 @@ python: "2.7"
env:
global:
- IS_TRAVIS=true
- CFLAGS=-O0
matrix:
- DAV_SERVER=radicale_filesystem REQUIREMENTS=release
- DAV_SERVER=radicale_filesystem REQUIREMENTS=devel
@ -10,5 +11,11 @@ env:
- DAV_SERVER=radicale_database REQUIREMENTS=devel
- DAV_SERVER=owncloud REQUIREMENTS=release
install: "./install-deps.sh"
script: "py.test -l tests/"
install:
- "./install-deps.sh"
- "pip install coveralls"
script:
- "coverage run --source=vdirsyncer/,tests/ --module pytest"
after_success:
- "coverage report --show-missing"
- "coveralls"

View file

@ -1,13 +1,13 @@
#!/bin/sh
echo "The shell is $SHELL"
set -e
[ "$IS_TRAVIS" = "true" ] && CFLAGS=-O0 pip install lxml || true
PIP_INSTALL="pip install --use-mirrors"
$PIP_INSTALL --editable .
$PIP_INSTALL -r requirements.txt
[ -n "$DAV_SERVER" ] || DAV_SERVER=radicale_filesystem
[ -n "$REQUIREMENTS" ] || REQUIREMENTS=release
$PIP_INSTALL --editable .
$PIP_INSTALL -r requirements.txt
davserver_radicale_filesystem() {
radicale_deps
}