[ci] "brew link gettext" to get msgfmt
[survex.git] / .travis.yml
blob8c4398e0f338ae00f5d405b70067929862382abe
1 dist: trusty
2 language: cpp
3 matrix:
4   include:
5     - compiler: gcc
6       os: linux
7       sudo: false
8       addons:
9         apt:
10           packages:
11             - libwxgtk3.0-dev
12             - libavcodec-dev
13             - libavformat-dev
14             - libproj-dev
15             - libswscale-dev
16             - mesa-common-dev
17             - libglu1-mesa-dev
18             - libx11-dev
19             - libxext-dev
20             - ghostscript
21             - netpbm
22             - x11proto-core-dev
23             - liblocale-po-perl
24             - unifont
25             - sgmltools-lite
26             - jadetex
27             - docbook-utils
28             - w3m
29       script:
30         - autoreconf -fiv
31         - ./configure
32         - make
33         - make check
34     - os: osx
35       before_install:
36         - brew update
37         - brew install ffmpeg
38         - brew install gettext
39         - brew install gnu-tar
40         - brew install netpbm
41         - brew install proj
42         - brew install wxmac
43         - brew link gettext
44         - sudo cpan -T -i local::lib < /dev/null
45         - sudo cpan -I -T -i Locale::PO < /dev/null
46         - echo '[ $SHLVL -eq 1 ] && eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)"' >> ~/.bashrc
47       script:
48         - autoreconf -fiv
49         - 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
50 #        - ./buildmacosx.sh
51         - ./configure
52         - make
53         - make check
54 branches:
55   only:
56     - master