Update of German translation
[geany-mirror.git] / .travis.yml
blob9a65a5fd60f2f86b438ba97830f55bbf854a7086
1 # we use both C and C++, so advertize C++
2 language: cpp
3 cache: ccache
4 dist: trusty
5 compiler:
6   - gcc
7 env:
8   - GTK3=no BINRELOC=no
9   - GTK3=yes BINRELOC=no
10   - GTK3=no BINRELOC=yes
11   - GTK3=yes BINRELOC=yes
12   - GTK3=no MINGW=yes
13   - GTK3=yes MINGW=yes
14 before_install:
15   - sudo apt-get update -qq
16 install:
17   - sudo apt-get install -y intltool libtool
18   - test -n "$MINGW" || sudo apt-get install -y libgtk2.0-dev libgtk-3-dev
19   - test -z "$MINGW" || sudo apt-get install -y mingw-w64-tools g++-mingw-w64-i686 gcc-mingw-w64-i686 binutils-mingw-w64-i686
20   # fix broken pkg-config-crosswrapper, see https://bugs.launchpad.net/ubuntu/+source/mingw-w64/+bug/1327242
21   - test -z "$MINGW" || sudo sed -e 's/PKG_CONFIG_PATH=/&$PKG_CONFIG_PATH:/' -i /usr/bin/i686-w64-mingw32-pkg-config
22   - sudo apt-get install -y python-docutils rst2pdf
23   # try not to install doxygen-latex because we don't need it and it's huge
24   - sudo apt-get install -y --no-install-recommends doxygen
25   - sudo apt-get install -y python-lxml
26 before_script:
27   - export CFLAGS="-g -O2 -Werror=pointer-arith -Werror=implicit-function-declaration"
28 script:
29   - NOCONFIGURE=1 ./autogen.sh
30   - >
31     if [ -n "$MINGW" ]; then
32       arg=-2; [ "$GTK3" = yes ] && arg=-3;
33       unset CC CXX;
34       sh ./scripts/cross-build-mingw.sh $arg;
35     else
36       CONFIGURE_FLAGS="--enable-gtk3=$GTK3 --enable-binreloc=$BINRELOC";
37       mkdir _build                        &&
38       cd _build                           &&
39       { ../configure $CONFIGURE_FLAGS || { cat config.log; exit 1; } ; } &&
40       make -j2                            &&
41       make -j2 check                      &&
42       make -j2 distcheck DISTCHECK_CONFIGURE_FLAGS="$CONFIGURE_FLAGS";
43     fi