Bump API version for new plugin entry points (oops)
[geany-mirror.git] / .travis.yml
blobd5273b4977ada4c887b0aa7121f8685cfa4d6eb0
1 # we use both C and C++, so advertize C++
2 language: cpp
3 compiler:
4   - gcc
5 env:
6   - GTK3=no
7   - GTK3=yes
8   - GTK3=no MINGW=yes
9   - GTK3=yes MINGW=yes
10 before_install:
11   - sudo apt-get update -qq
12 install:
13   - sudo apt-get install -y intltool libtool
14   - test -n "$MINGW" || sudo apt-get install -y libgtk2.0-dev libgtk-3-dev
15   - test -z "$MINGW" || sudo apt-get install -y mingw-w64-tools g++-mingw-w64-i686 gcc-mingw-w64-i686 binutils-mingw-w64-i686
16   - sudo apt-get install -y python-docutils rst2pdf
17   # try not to install doxygen-latex because we don't need it and it's huge
18   - sudo apt-get install -y --no-install-recommends doxygen
19 before_script:
20   - export CFLAGS="-g -O2 -Werror=pointer-arith -Werror=aggregate-return -Werror=implicit-function-declaration"
21 script:
22   - NOCONFIGURE=1 ./autogen.sh
23   - >
24     if [ -n "$MINGW" ]; then
25       arg=-2; [ "$GTK3" = yes ] && arg=-3;
26       unset CC CXX;
27       sh ./scripts/cross-build-mingw.sh $arg;
28     else
29       mkdir _build                        &&
30       cd _build                           &&
31       ../configure --enable-gtk3=$GTK3    &&
32       make -j2                            &&
33       make -j2 check;
34     fi