Unverified Commit e8d14d8c authored by xoviat's avatar xoviat Committed by GitHub
Browse files

Merge pull request #73 from matthew-brett/keep-alive

Keep alive: disable w/out env
parents a76a530b 796da9e9
......@@ -11,11 +11,15 @@ cache:
directories:
- $HOME/.ccache
env:
global:
- MB_KEEP_ALIVE=1
matrix:
allow_failures:
- osx_image: xcode8.3
env:
- PYTHON_VERSION=3.5
- osx_image: xcode8.3
env:
- PYTHON_VERSION=3.5
include:
- os: linux
dist: precise
......
......@@ -18,10 +18,12 @@ if [ $(uname) == "Darwin" ]; then IS_OSX=1; fi
# https://github.com/direnv/direnv/issues/210
shell_session_update() { :; }
# Start a process that runs as a keep-alive
# to avoid travis quitting if there is no output
if [ -n "$MB_KEEP_ALIVE" ]; then
# Start a process that runs as a keep-alive
# to avoid travis quitting if there is no output
(while true; do >&2 echo "Travis-CI keep-alive"; sleep 480; done) &
(while true; do >&2 echo "Travis-CI keep-alive"; sleep 480; done) &
fi
function abspath {
python -c "import os.path; print(os.path.abspath('$1'))"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment