travis: Add 'ts' to all Travis CI builds for timestamping logs.

Fixes: #5264.
This commit is contained in:
Aditya Bansal
2017-06-15 05:06:50 +05:30
parent 5482a6e129
commit 5e4acbaba3

View File

@@ -1,25 +1,27 @@
# See https://zulip.readthedocs.io/en/latest/events-system.html for
# high-level documentation on our Travis CI setup.
dist: trusty
before_install:
- sudo apt-get install moreutils # To use 'ts' and 'mispipe' for timing logs.
install:
# Disable Travis CI's built-in NVM installation
- mv ~/.nvm ~/.travis-nvm-disabled
- mispipe "mv ~/.nvm ~/.travis-nvm-disabled" ts
# Install coveralls, the library for the code coverage reporting tool we use
- pip install coveralls
- mispipe "pip install coveralls" ts
# This is the main setup job for the test suite
- tools/travis/setup-$TEST_SUITE
- mispipe "tools/travis/setup-$TEST_SUITE" ts
# Clean any virtualenvs that are not in use to avoid our cache
# becoming huge. TODO: Add similar cleanup code for the other caches.
- tools/clean-venv-cache --travis
- mispipe "tools/clean-venv-cache --travis" ts
script:
# We unset GEM_PATH here as a hack to work around Travis CI having
# broken running their system puppet with Ruby. See
# https://travis-ci.org/zulip/zulip/jobs/240120991 for an example traceback.
- unset GEM_PATH
- ./tools/travis/$TEST_SUITE
- mispipe "./tools/travis/$TEST_SUITE" ts
cache:
- apt: false
- directories: