Replace instances of envvar TRAVIS with CI

This commit is contained in:
Hugo Osvaldo Barrera 2016-03-04 12:32:50 -03:00
parent cfe53f4a8b
commit bac0966814
2 changed files with 4 additions and 4 deletions

View file

@ -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 \

View file

@ -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")