mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +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 REQUIREMENTS := release
|
||||
export TESTSERVER_BASE := ./tests/storage/servers/
|
||||
export TRAVIS := false
|
||||
export CI := false
|
||||
export DETERMINISTIC_TESTS := false
|
||||
|
||||
install-servers:
|
||||
|
|
@ -28,11 +28,11 @@ install-test: install-servers
|
|||
git+https://github.com/DRMacIver/hypothesis \
|
||||
git+https://github.com/pytest-dev/pytest; \
|
||||
fi
|
||||
[ $(TRAVIS) != "true" ] || pip install coverage codecov
|
||||
[ $(CI) != "true" ] || pip install coverage codecov
|
||||
|
||||
test:
|
||||
set -e; \
|
||||
if [ "$(TRAVIS)" = "true" ]; then \
|
||||
if [ "$(CI)" = "true" ]; then \
|
||||
coverage run --source=vdirsyncer/ --module pytest; \
|
||||
codecov; \
|
||||
else \
|
||||
|
|
|
|||
|
|
@ -41,5 +41,5 @@ settings.register_profile("deterministic", settings(
|
|||
|
||||
if os.getenv('DETERMINISTIC_TESTS').lower == 'true':
|
||||
settings.load_profile("deterministic")
|
||||
elif os.getenv('TRAVIS').lower == 'true':
|
||||
elif os.getenv('CI').lower == 'true':
|
||||
settings.load_profile("ci")
|
||||
|
|
|
|||
Loading…
Reference in a new issue