From ca8fe083e38b1a806047a8b3c753f5aefcaa82cc Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Fri, 5 Oct 2018 20:26:46 -0300 Subject: [PATCH] travis: Attempt make on ubuntu:18.04 --- .travis.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..0730695 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,18 @@ +sudo: required +dist: trusty +os: linux +language: minimal +env: + global: + - MAKEJOBS=-j3 + - DOCKER_NAME_TAG=ubuntu:18.04 + - DOCKER_PACKAGES="build-essential libtool autotools-dev automake pkg-config bsdmainutils curl git ca-certificates clang" +install: + - travis_retry docker pull $DOCKER_NAME_TAG + - DOCKER_ID=$(docker run $DOCKER_ADMIN -idt --mount type=bind,src=$TRAVIS_BUILD_DIR,dst=$TRAVIS_BUILD_DIR -w $TRAVIS_BUILD_DIR $DOCKER_NAME_TAG) + - DOCKER_EXEC () { docker exec $DOCKER_ID bash -c "cd $PWD && $*"; } + - travis_retry DOCKER_EXEC apt-get update + - travis_retry DOCKER_EXEC apt-get install --no-install-recommends --no-upgrade -qq $DOCKER_PACKAGES +script: + - travis_wait 50 DOCKER_EXEC "make $MAKEJOBS &> /tmp/make_log" + - DOCKER_EXEC tail -300 /tmp/make_log