From c98a8cdae1b91ee9d5f41eec025def696e70a7a4 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Mon, 19 Feb 2018 14:26:47 +0000 Subject: [PATCH] Experiment with building in docker on Travis. --- .travis.yml | 45 +++++++++------------------------------------ 1 file changed, 9 insertions(+), 36 deletions(-) diff --git a/.travis.yml b/.travis.yml index b80cabc9a..00ad82f86 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,40 +1,13 @@ +sudo: required language: cpp -addons: - apt: - packages: - - cmake - - gettext - - libboost-dev - - libboost-serialization-dev - - libcdio-dev - - libchromaprint-dev - - libcrypto++-dev - - libechonest-dev - - libfftw3-dev - - libglew1.5-dev - - libgpod-dev - - libgstreamer1.0-dev - - libgstreamer-plugins-base1.0-dev - - liblastfm-dev - - libmtp-dev - - libplist-dev - - libprotobuf-dev - - libpulse-dev - - libqca2-dev - - libqca2-plugin-ossl - - libqjson-dev - - libqt4-dev - - libqt4-opengl-dev - - libqtwebkit-dev - - libsparsehash-dev - - libsqlite3-dev - - libtag1-dev - - libusbmuxd-dev - - protobuf-compiler - - qt4-dev-tools +services: + - docker + +before_script: + - sudo docker pull gcr.io/clementine-data/slave-ubuntu-bionic-64 script: - - cd bin - - cmake .. - - make + - > + sudo docker run gcr.io/clementine-data/slave-ubuntu-bionic-64 --entrypoint=/bin/bash -v ${TRAVIS_BUILD_DIR}:/build + -c 'cd /build/bin && cmake .. && make'