Better builds

This commit is contained in:
Markus Unterwaditzer 2014-03-04 17:41:26 +01:00
parent 273cc4d6fd
commit 6433c5dc15
4 changed files with 19 additions and 3 deletions

View file

@ -1,8 +1,11 @@
language: python
python: "2.7"
env:
- DAV_SERVER=radicale
- DAV_SERVER=radicale-git
install:
- "pip install ."
- "pip install -r dev_requirements.txt"
- "sh install_deps.sh"
script: py.test

View file

@ -20,5 +20,5 @@ Run `vdirsyncer --help`.
## How to run the tests
pip install .
pip install -r dev_requirements.txt
sh install_deps.sh
py.test

14
install-deps.sh Normal file
View file

@ -0,0 +1,14 @@
pip install -r requirements.txt
[[ -z "$DAV_SERVER" ]] && DAV_SERVER=radicale
case "$DAV_SERVER" in
"radicale")
pip install radicale
;;
"radicale-git")
pip install git+https://github.com/Kozea/Radicale.git
;;
*)
echo "$DAV_SERVER is not known."
exit 1
;;
esac

View file

@ -1,4 +1,3 @@
Radicale
Werkzeug
pytest
pytest-capturelog