mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Revamp tests once again
This commit is contained in:
parent
22ce8cf7a4
commit
138c8f00a0
3 changed files with 15 additions and 13 deletions
|
|
@ -6,8 +6,8 @@ python:
|
|||
- "3.3"
|
||||
- "3.4"
|
||||
env:
|
||||
- BUILD=test DAV_SERVER=radicale RADICALE_BACKEND=filesystem REQUIREMENTS=release
|
||||
# Radicale with filesystem storage (default)
|
||||
- BUILD=test
|
||||
# Default build, see Makefile
|
||||
|
||||
- BUILD=test DAV_SERVER=radicale RADICALE_BACKEND=filesystem REQUIREMENTS=release
|
||||
PKGS='lxml==3.0 requests==2.4.1 requests_toolbelt==0.4.0 click==5.0'
|
||||
|
|
|
|||
17
Makefile
17
Makefile
|
|
@ -11,11 +11,11 @@
|
|||
# If you want to skip the DAV tests against Radicale, use:
|
||||
# make DAV_SERVER=skip # ...
|
||||
|
||||
DAV_SERVER = radicale
|
||||
REQUIREMENTS = release
|
||||
TESTSERVER_BASE = ./tests/storage/dav/servers/
|
||||
TRAVIS = false
|
||||
PIP_INSTALL = pip install
|
||||
export DAV_SERVER := radicale
|
||||
export RADICALE_BACKEND := filesystem
|
||||
export REQUIREMENTS := release
|
||||
export TESTSERVER_BASE := ./tests/storage/dav/servers/
|
||||
export TRAVIS := false
|
||||
|
||||
install-davserver:
|
||||
set -e; \
|
||||
|
|
@ -28,8 +28,8 @@ install-davserver:
|
|||
cd $(TESTSERVER_BASE)$(DAV_SERVER) && sh install.sh
|
||||
|
||||
install-test: install-davserver
|
||||
$(PIP_INSTALL) pytest pytest-xprocess pytest-localserver
|
||||
[ $(TRAVIS) != "true" ] || $(PIP_INSTALL) coverage coveralls
|
||||
pip install pytest pytest-xprocess pytest-localserver
|
||||
[ $(TRAVIS) != "true" ] || pip install coverage coveralls
|
||||
|
||||
test:
|
||||
set -e; \
|
||||
|
|
@ -60,11 +60,10 @@ sh: # open subshell with default test config
|
|||
linkcheck:
|
||||
sphinx-build -W -b linkcheck ./docs/ ./docs/_build/linkcheck/
|
||||
|
||||
install:
|
||||
all:
|
||||
$(error Take a look at https://vdirsyncer.readthedocs.org/en/stable/tutorial.html#installation)
|
||||
|
||||
release:
|
||||
python setup.py sdist bdist_wheel upload
|
||||
|
||||
.DEFAULT_GOAL := install
|
||||
.PHONY: docs
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
[ -n "$REQUIREMENTS" ] || export REQUIREMENTS=release
|
||||
[ -n "$RADICALE_BACKEND" ] || export RADICALE_BACKEND=filesystem
|
||||
|
||||
if [ -z "$RADICALE_BACKEND" ]; then
|
||||
echo "Missing RADICALE_BACKEND"
|
||||
false
|
||||
fi
|
||||
|
||||
if [ "$REQUIREMENTS" = "release" ]; then
|
||||
radicale_pkg="radicale"
|
||||
|
|
|
|||
Loading…
Reference in a new issue