mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Goddamnit
This commit is contained in:
parent
47f6a005ab
commit
221968b787
3 changed files with 15 additions and 8 deletions
|
|
@ -7,6 +7,10 @@ env:
|
|||
- DAV_SERVER=radicale_git RADICALE_STORAGE=database
|
||||
|
||||
install:
|
||||
- "sh install-deps.sh"
|
||||
- "./install-deps.sh"
|
||||
|
||||
script: py.test
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- /home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages
|
||||
|
|
|
|||
16
install-deps.sh
Normal file → Executable file
16
install-deps.sh
Normal file → Executable file
|
|
@ -1,19 +1,23 @@
|
|||
#!/bin/sh
|
||||
pip install --use-mirrors .
|
||||
pip install --use-mirrors -r requirements.txt
|
||||
[[ -z "$DAV_SERVER" ]] && DAV_SERVER=radicale
|
||||
|
||||
radicale_deps() {
|
||||
if [[ "$RADICALE_STORAGE" == "database" ]]; then
|
||||
pip install --use-mirrors sqlalchemy
|
||||
fi
|
||||
}
|
||||
[[ -z "$RADICALE_STORAGE" ]] && RADICALE_STORAGE=filesystem
|
||||
|
||||
davserver_radicale() {
|
||||
pip install --use-mirrors radicale
|
||||
radicale_deps
|
||||
}
|
||||
|
||||
davserver_radicale_git() {
|
||||
pip install git+https://github.com/Kozea/Radicale.git
|
||||
radicale_deps
|
||||
}
|
||||
|
||||
radicale_deps() { radicale_storage_$RADICALE_STORAGE; }
|
||||
|
||||
radicale_storage_database() { pip install --use-mirrors sqlalchemy pysqlite; }
|
||||
radicale_storage_filesystem() { true; }
|
||||
|
||||
|
||||
davserver_$DAV_SERVER
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
Werkzeug
|
||||
pytest
|
||||
pytest-capturelog
|
||||
mock
|
||||
|
|
|
|||
Loading…
Reference in a new issue