aboutsummaryrefslogtreecommitdiffstats
path: root/travis/travis.sh
blob: 1ea4d43dd6696e38b19d59dc130c1ac6eb7be982 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
set -e

# Workaround for Travis log output timeout (jobs without output over 10 minutes are killed)
function bell() {
  while true; do
    echo "."
    sleep 300
  done
}

DOCKER_IMAGE=vespaengine/vespa-build-centos7:latest

bell &
docker run --rm -v ${HOME}/.m2:/root/.m2 -v ${HOME}/.ccache:/root/.ccache -v $(pwd):/source \
       -e TRAVIS_REPO_SLUG=$TRAVIS_REPO_SLUG -e TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST \
       --entrypoint /source/travis/travis-build.sh ${DOCKER_IMAGE}
exit $?