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