Skip to content
Permalink
Browse files

Change travis CI to build using docker.

  • Loading branch information...
liske committed Oct 20, 2017
1 parent c9cbdbb commit 2417a51769935e0b1c602008ed0c84246f0bedae
Showing with 25 additions and 10 deletions.
  1. +8 −10 .travis.yml
  2. +7 −0 build/travis-before.sh
  3. +10 −0 build/travis-install.sh
@@ -1,7 +1,8 @@
sudo: required
dist: trusty
language: generic

language: c
services:
- docker

env:
- features=""
@@ -134,15 +135,12 @@ env:
- features="--enable-autoref --enable-clusters --enable-debug --enable-history --enable-tclfilter --enable-tmux --enable-xmlreport"

before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq automake libpopt-dev libglib2.0-dev libncursesw5-dev tcl8.5-dev libxml2-dev libconfig-dev screen tmux
- aclocal
- autoconf
- automake --add-missing --force-missing
- ./configure $features
- docker run --name travis-build -e features="$features" -v $(pwd):/prj -it debian /prj/build/travis-before.sh
- docker commit travis-build travis-build

install:
- make
- docker run --name travis-install -e features="$features" -v $(pwd):/prj -it travis-build /prj/build/travis-install.sh
- docker commit travis-install travis-install

script:
- ./src/apt-dater -v
- docker run --rm -it travis-install /prj/src/apt-dater -v
@@ -0,0 +1,7 @@
#!/bin/sh -xe

cd $(dirname $0)/..

apt-get update
apt-get dist-upgrade -y
apt-get install -y automake gettext libpopt-dev libglib2.0-dev libncursesw5-dev tcl8.5-dev libxml2-dev libconfig-dev screen tmux xxd
@@ -0,0 +1,10 @@
#!/bin/sh -xe

cd $(dirname $0)/..

aclocal
autoconf
automake --add-missing --force-missing
./configure $features

make

0 comments on commit 2417a51

Please sign in to comment.
You can’t perform that action at this time.