diff --git a/.travis.yml b/.travis.yml index ab827088..375835c4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,41 @@ dist: trusty - +group: travis_latest language: c +services: + - docker -sudo: required -compiler: gcc +env: + PLATFORM=debian before_install: -- sudo add-apt-repository ppa:rebuntu16/glade-3.19+-trusty -y -- sudo apt-get update -q -- sudo apt-get install -y libglib2.0-dev libgtk-3-dev python3 libcurl3 gettext pkg-config libircclient-dev libircclient1 + - docker pull ${PLATFORM}:stable + - docker run + --name with-dep + -v $PWD:/build + -e PLATFORM=${PLATFORM} + ${PLATFORM}:stable + /build/.travis/dep.sh + - docker commit with-dep ${PLATFORM}:with-dep +script: + # Build + - docker run --name with-build + -v $PWD:/build + -e PLATFORM=${PLATFORM} + ${PLATFORM}:with-dep + /build/.travis/build.sh + - docker commit with-build ${PLATFORM}:with-build + # Install + - docker run --name with-install + -v $PWD:/build + -e PLATFORM=${PLATFORM} + ${PLATFORM}:with-build + /build/.travis/install.sh + - docker commit with-install ${PLATFORM}:with-install + # Verify + - docker run + ${PLATFORM}:with-install + /bin/sh -c "/usr/local/bin/srain --version" -script: -- mkdir build -- ./configure --prefix=/usr/local --disable-debug -- make -- sudo make DESTDIR=/ install +# vim: set tabstop=2: +# vim: set shiftwidth=2: +# vim: set softtabstop=2: diff --git a/.travis/build.sh b/.travis/build.sh new file mode 100755 index 00000000..e519a359 --- /dev/null +++ b/.travis/build.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /build +./doc/install/build.sh diff --git a/.travis/dep.sh b/.travis/dep.sh new file mode 100755 index 00000000..e14bccf1 --- /dev/null +++ b/.travis/dep.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +case "${PLATFORM}" in + debian) + cat > /etc/apt/apt.conf <