github.com/djenriquez/nomad-1@v0.8.1/scripts/travis.sh (about)

     1  #!/bin/bash
     2  set -e
     3  
     4  export PING_SLEEP=60
     5  bash -c "while true; do echo \$(date) - building ...; sleep $PING_SLEEP; done" &
     6  PING_LOOP_PID=$!
     7  
     8  trap 'kill ${PING_LOOP_PID}' EXIT HUP INT QUIT TERM
     9  
    10  if [ "$RUN_STATIC_CHECKS" ]; then
    11      make check
    12      if [ "$TRAVIS_OS_NAME" == "linux" ]; then
    13          make checkscripts
    14      fi
    15  fi
    16  
    17  NOMAD_SLOW_TEST=1 make test
    18  TEST_OUTPUT=$?
    19  
    20  kill $PING_LOOP_PID
    21  exit $TEST_OUTPUT