mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Use codecov tags
This commit is contained in:
parent
5a508ae327
commit
461fab84ec
4 changed files with 17 additions and 22 deletions
|
|
@ -2,3 +2,10 @@ comment: false
|
||||||
coverage:
|
coverage:
|
||||||
status:
|
status:
|
||||||
patch: false
|
patch: false
|
||||||
|
project:
|
||||||
|
unit:
|
||||||
|
flags: unit
|
||||||
|
system:
|
||||||
|
flags: system
|
||||||
|
storage:
|
||||||
|
flags: storage
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,4 @@
|
||||||
{
|
{
|
||||||
"after_script": [
|
|
||||||
"\nif [ \"$TRAVIS_PULL_REQUEST\" = \"false\" ] || [ \"$BUILD_PRS\" != \"false\" ];\nthen make -e after-$BUILD;\nfi"
|
|
||||||
],
|
|
||||||
"branches": {
|
"branches": {
|
||||||
"only": [
|
"only": [
|
||||||
"auto",
|
"auto",
|
||||||
|
|
|
||||||
28
Makefile
28
Makefile
|
|
@ -18,13 +18,17 @@ endif
|
||||||
|
|
||||||
ifeq ($(CI), true)
|
ifeq ($(CI), true)
|
||||||
TEST_EXTRA_PACKAGES += codecov
|
TEST_EXTRA_PACKAGES += codecov
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq ($(DAV_SERVER), skip)
|
test:
|
||||||
PYTEST_ARGS += tests/storage/dav
|
py.test $(PYTEST_ARGS) tests/unit/
|
||||||
endif
|
codecov -F unit
|
||||||
ifneq ($(REMOTESTORAGE_SERVER), skip)
|
py.test $(PYTEST_ARGS) tests/system/
|
||||||
PYTEST_ARGS += tests/storage/test_remotestorage.py
|
codecov -F system
|
||||||
|
py.test $(PYTEST_ARGS) tests/storage/
|
||||||
|
codecov -F storage
|
||||||
|
else
|
||||||
|
test:
|
||||||
|
py.test $(PYTEST_ARGS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
|
@ -49,12 +53,6 @@ install-test: install-servers
|
||||||
fi
|
fi
|
||||||
[ -z "$(TEST_EXTRA_PACKAGES)" ] || pip install $(TEST_EXTRA_PACKAGES)
|
[ -z "$(TEST_EXTRA_PACKAGES)" ] || pip install $(TEST_EXTRA_PACKAGES)
|
||||||
|
|
||||||
test:
|
|
||||||
py.test $(PYTEST_ARGS)
|
|
||||||
|
|
||||||
after-test:
|
|
||||||
[ "$(CI)" != "true" ] || codecov
|
|
||||||
|
|
||||||
install-style: install-docs
|
install-style: install-docs
|
||||||
pip install flake8 flake8-import-order flake8-bugbear>=17.3.0
|
pip install flake8 flake8-import-order flake8-bugbear>=17.3.0
|
||||||
|
|
||||||
|
|
@ -65,9 +63,6 @@ style:
|
||||||
sphinx-build -W -b html ./docs/ ./docs/_build/html/
|
sphinx-build -W -b html ./docs/ ./docs/_build/html/
|
||||||
python3 scripts/make_travisconf.py | diff -b .travis.yml -
|
python3 scripts/make_travisconf.py | diff -b .travis.yml -
|
||||||
|
|
||||||
after-style:
|
|
||||||
true
|
|
||||||
|
|
||||||
travis-conf:
|
travis-conf:
|
||||||
python3 scripts/make_travisconf.py > .travis.yml
|
python3 scripts/make_travisconf.py > .travis.yml
|
||||||
|
|
||||||
|
|
@ -77,9 +72,6 @@ install-docs:
|
||||||
docs:
|
docs:
|
||||||
cd docs && make html
|
cd docs && make html
|
||||||
|
|
||||||
after-docs:
|
|
||||||
true
|
|
||||||
|
|
||||||
sh: # open subshell with default test config
|
sh: # open subshell with default test config
|
||||||
$$SHELL;
|
$$SHELL;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,6 @@ then {};
|
||||||
fi""".format
|
fi""".format
|
||||||
|
|
||||||
cfg['script'] = [script("make -e $BUILD")]
|
cfg['script'] = [script("make -e $BUILD")]
|
||||||
cfg['after_script'] = [script("make -e after-$BUILD")]
|
|
||||||
|
|
||||||
matrix = []
|
matrix = []
|
||||||
cfg['matrix'] = {'include': matrix}
|
cfg['matrix'] = {'include': matrix}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue