mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +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
|
- DAV_SERVER=radicale_git RADICALE_STORAGE=database
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- "sh install-deps.sh"
|
- "./install-deps.sh"
|
||||||
|
|
||||||
script: py.test
|
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 .
|
||||||
pip install --use-mirrors -r requirements.txt
|
pip install --use-mirrors -r requirements.txt
|
||||||
[[ -z "$DAV_SERVER" ]] && DAV_SERVER=radicale
|
[[ -z "$DAV_SERVER" ]] && DAV_SERVER=radicale
|
||||||
|
[[ -z "$RADICALE_STORAGE" ]] && RADICALE_STORAGE=filesystem
|
||||||
radicale_deps() {
|
|
||||||
if [[ "$RADICALE_STORAGE" == "database" ]]; then
|
|
||||||
pip install --use-mirrors sqlalchemy
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
davserver_radicale() {
|
davserver_radicale() {
|
||||||
pip install --use-mirrors radicale
|
pip install --use-mirrors radicale
|
||||||
|
radicale_deps
|
||||||
}
|
}
|
||||||
|
|
||||||
davserver_radicale_git() {
|
davserver_radicale_git() {
|
||||||
pip install git+https://github.com/Kozea/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
|
davserver_$DAV_SERVER
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
Werkzeug
|
Werkzeug
|
||||||
pytest
|
pytest
|
||||||
pytest-capturelog
|
|
||||||
mock
|
mock
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue