mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Replace instances of envvar TRAVIS with CI
This commit is contained in:
parent
cfe53f4a8b
commit
bac0966814
2 changed files with 4 additions and 4 deletions
6
Makefile
6
Makefile
|
|
@ -5,7 +5,7 @@ export REMOTESTORAGE_SERVER := skip
|
||||||
export RADICALE_BACKEND := filesystem
|
export RADICALE_BACKEND := filesystem
|
||||||
export REQUIREMENTS := release
|
export REQUIREMENTS := release
|
||||||
export TESTSERVER_BASE := ./tests/storage/servers/
|
export TESTSERVER_BASE := ./tests/storage/servers/
|
||||||
export TRAVIS := false
|
export CI := false
|
||||||
export DETERMINISTIC_TESTS := false
|
export DETERMINISTIC_TESTS := false
|
||||||
|
|
||||||
install-servers:
|
install-servers:
|
||||||
|
|
@ -28,11 +28,11 @@ install-test: install-servers
|
||||||
git+https://github.com/DRMacIver/hypothesis \
|
git+https://github.com/DRMacIver/hypothesis \
|
||||||
git+https://github.com/pytest-dev/pytest; \
|
git+https://github.com/pytest-dev/pytest; \
|
||||||
fi
|
fi
|
||||||
[ $(TRAVIS) != "true" ] || pip install coverage codecov
|
[ $(CI) != "true" ] || pip install coverage codecov
|
||||||
|
|
||||||
test:
|
test:
|
||||||
set -e; \
|
set -e; \
|
||||||
if [ "$(TRAVIS)" = "true" ]; then \
|
if [ "$(CI)" = "true" ]; then \
|
||||||
coverage run --source=vdirsyncer/ --module pytest; \
|
coverage run --source=vdirsyncer/ --module pytest; \
|
||||||
codecov; \
|
codecov; \
|
||||||
else \
|
else \
|
||||||
|
|
|
||||||
|
|
@ -41,5 +41,5 @@ settings.register_profile("deterministic", settings(
|
||||||
|
|
||||||
if os.getenv('DETERMINISTIC_TESTS').lower == 'true':
|
if os.getenv('DETERMINISTIC_TESTS').lower == 'true':
|
||||||
settings.load_profile("deterministic")
|
settings.load_profile("deterministic")
|
||||||
elif os.getenv('TRAVIS').lower == 'true':
|
elif os.getenv('CI').lower == 'true':
|
||||||
settings.load_profile("ci")
|
settings.load_profile("ci")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue