[ci] Remove commented out ./buildmacosx.sh
[survex.git] / .travis.yml
blob49baab05c2e14b7f30c82d91ee7d27c5e5e7f6a0
1 dist: trusty
2 language: cpp
3 env:
4   global:
5     - HOMEBREW_PACKAGES='ffmpeg gettext gnu-tar netpbm proj wxmac'
6 matrix:
7   include:
8     - compiler: gcc
9       os: linux
10       sudo: false
11       addons:
12         apt:
13           packages:
14             - libwxgtk3.0-dev
15             - libavcodec-dev
16             - libavformat-dev
17             - libproj-dev
18             - libswscale-dev
19             - mesa-common-dev
20             - libglu1-mesa-dev
21             - libx11-dev
22             - libxext-dev
23             - ghostscript
24             - netpbm
25             - x11proto-core-dev
26             - liblocale-po-perl
27             - unifont
28             - sgmltools-lite
29             - jadetex
30             - docbook-utils
31             - w3m
32       script:
33         - autoreconf -fiv
34         - ./configure
35         - make
36         - make check VERBOSE=1
37     - os: osx
38       before_install:
39         - brew update
40         # "brew install" unhelpfully errors out if any package listed is
41         # already installed and up-to-date, but travis change what's installed
42         # by default from time to time so it's brittle to just filter out those
43         # installed by default from the list we need.  So we ignore the exit
44         # status from "brew install", then check that "brew list --versions"
45         # says all the packages requested are installed.
46         - brew install $HOMEBREW_PACKAGES || true
47         - brew list --versions $HOMEBREW_PACKAGES
48         - brew link --force gettext
49         - sudo cpan -T -i local::lib < /dev/null
50         - sudo cpan -I -T -i Locale::PO < /dev/null
51         - echo '[ $SHLVL -eq 1 ] && eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)"' >> ~/.bashrc
52       script:
53         - autoreconf -fiv
54         - 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
55         - ./configure
56         - make
57         - make check VERBOSE=1
58     - os: osx
59       osx_image: xcode7.3
60       before_install:
61         - brew update
62         # "brew install" unhelpfully errors out if any package listed is
63         # already installed and up-to-date, but travis change what's installed
64         # by default from time to time so it's brittle to just filter out those
65         # installed by default from the list we need.  So we ignore the exit
66         # status from "brew install", then check that "brew list --versions"
67         # says all the packages requested are installed.
68         - brew install $HOMEBREW_PACKAGES || true
69         - brew list --versions $HOMEBREW_PACKAGES
70         - brew link --force gettext
71         - sudo cpan -T -i local::lib < /dev/null
72         - sudo cpan -I -T -i Locale::PO < /dev/null
73         - echo '[ $SHLVL -eq 1 ] && eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)"' >> ~/.bashrc
74       script:
75         - autoreconf -fiv
76         - 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
77         - ./configure
78         - make
79         - make check VERBOSE=1
80 branches:
81   only:
82     - master