dist: trusty language: cpp env: global: - HOMEBREW_PACKAGES='ffmpeg gettext gnu-tar netpbm proj wxmac' matrix: include: - compiler: gcc os: linux sudo: false addons: apt: packages: - libwxgtk3.0-dev - libavcodec-dev - libavformat-dev - libproj-dev - libswscale-dev - mesa-common-dev - libglu1-mesa-dev - libx11-dev - libxext-dev - ghostscript - netpbm - x11proto-core-dev - liblocale-po-perl - unifont - sgmltools-lite - jadetex - docbook-utils - w3m script: - autoreconf -fiv - ./configure - make - make check VERBOSE=1 - os: osx before_install: - brew update # "brew install" unhelpfully errors out if any package listed is # already installed and up-to-date, but travis change what's installed # by default from time to time so it's brittle to just filter out those # installed by default from the list we need. So we ignore the exit # status from "brew install", then check that "brew list --versions" # says all the packages requested are installed. - brew install $HOMEBREW_PACKAGES || true - brew list --versions $HOMEBREW_PACKAGES - brew link --force gettext - sudo cpan -T -i local::lib < /dev/null - sudo cpan -I -T -i Locale::PO < /dev/null - echo '[ $SHLVL -eq 1 ] && eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)"' >> ~/.bashrc script: - autoreconf -fiv - V=`sed -e 's/^AC_INIT[^,]*, *\[\([^]]*\)\].*/\1/p;d' configure.ac` ; curl https://survex.com/software/$V/survex-$V.tar.gz | gtar --strip-components=1 --skip-old-files -zxf - ; ls -lrt lib ; touch lib/unifont.pixelfont lib/preload_font.h; echo ; ls -lrt doc; touch doc/*.1 doc/manual.txt doc/manual.pdf doc/manual/stampfile - ./configure - make - make check VERBOSE=1 - os: osx # xcode8 is rejected by homebrew as too old osx_image: xcode8.3 before_install: - brew update # "brew install" unhelpfully errors out if any package listed is # already installed and up-to-date, but travis change what's installed # by default from time to time so it's brittle to just filter out those # installed by default from the list we need. So we ignore the exit # status from "brew install", then check that "brew list --versions" # says all the packages requested are installed. - brew install $HOMEBREW_PACKAGES || true - brew list --versions $HOMEBREW_PACKAGES - brew link --force gettext - sudo cpan -T -i local::lib < /dev/null - sudo cpan -I -T -i Locale::PO < /dev/null - echo '[ $SHLVL -eq 1 ] && eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)"' >> ~/.bashrc script: - autoreconf -fiv - V=`sed -e 's/^AC_INIT[^,]*, *\[\([^]]*\)\].*/\1/p;d' configure.ac` ; curl https://survex.com/software/$V/survex-$V.tar.gz | gtar --strip-components=1 --skip-old-files -zxf - ; ls -lrt lib ; touch lib/unifont.pixelfont lib/preload_font.h; echo ; ls -lrt doc; touch doc/*.1 doc/manual.txt doc/manual.pdf doc/manual/stampfile - ./configure - make - make check VERBOSE=1 branches: only: - master