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

View file

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