Code Repositories xandikos / 908be5b
Add coverage-litmus. Don't throw out other coverage results in xandikos-vdirsyncer. Jelmer Vernooń≥ 2 years ago
5 changed file(s) with 14 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
1414 - sudo apt-get install -qq libneon27-dev curl
1515 - python setup.py develop
1616 script:
17 - make style
1718 - make coverage
18 - make style
19 - make check-litmus
19 - make coverage-litmus
2020 - make check-vdirsyncer
2121 after_success:
2222 - codecov
00 export PYTHON ?= python3
11 COVERAGE ?= $(PYTHON) -m coverage
22 COVERAGE_RUN_OPTIONS ?=
3 COVERAGE_RUN ?= $(COVERAGE) run $(COVERAGE_RUN_OPTIONS)
34 TESTSUITE = xandikos.tests.test_suite
45
56 check:
1718 check-litmus:
1819 ./compat/xandikos-litmus.sh "basic"
1920
21 coverage-litmus:
22 XANDIKOS="$(COVERAGE_RUN) -a --rcfile=$(shell pwd)/.coveragerc --source=xandikos -m xandikos.web" ./compat/xandikos-litmus.sh "basic"
23
2024 check-vdirsyncer:
2125 ./compat/xandikos-vdirsyncer.sh
2226
2529
2630 check-all: check check-vdirsyncer check-litmus
2731
32 coverage-all: coverage coverage-litmus
33
2834 coverage:
29 $(COVERAGE) run $(COVERAGE_RUN_OPTIONS) --source=xandikos -m unittest $(TESTSUITE)
35 $(COVERAGE_RUN) --source=xandikos -m unittest $(TESTSUITE)
3036
3137 coverage-html: coverage
3238 $(COVERAGE) html
1212 set -e
1313
1414 cleanup() {
15 [ -z ${XANDIKOS_PID} ] || kill ${XANDIKOS_PID}
15 [ -z ${XANDIKOS_PID} ] || kill -TERM ${XANDIKOS_PID}
1616 rm --preserve-root -rf ${SERVEDIR}
1717 cat ${DAEMON_LOG}
18 wait
1918 }
2019
2120 run_xandikos()
4443 fi
4544
4645 TESTS="$TESTS" $LITMUS http://localhost:5233/
46 exit 0
2828 install-dev install-test test
2929
3030 cd "$REPO_DIR"
31 coverage combine compat/vdirsyncer/.coverage
31 coverage combine compat/vdirsyncer/.coverage .
861861 options.port)
862862
863863 import signal
864
864865 def handle_sigterm(sig, action):
865866 sys.exit(0)
867
866868 signal.signal(signal.SIGTERM, handle_sigterm)
867869 try:
868870 server.serve_forever()