~haaaad/geany/master

6939.1.1 by Colomban Wendling
travis: Add a Travis CI settings file
1
# we use both C and C++, so advertize C++
2
language: cpp
7398 by Colomban Wendling
Update Scintilla to version 3.7.5 (#1503)
3
dist: trusty
6939.1.1 by Colomban Wendling
travis: Add a Travis CI settings file
4
compiler:
5
  - gcc
6
env:
7
  - GTK3=no
8
  - GTK3=yes
6939.1.2 by Colomban Wendling
travis: Enable Windows cross-compilation
9
  - GTK3=no MINGW=yes
10
  - GTK3=yes MINGW=yes
6939.1.1 by Colomban Wendling
travis: Add a Travis CI settings file
11
before_install:
12
  - sudo apt-get update -qq
13
install:
6939.1.2 by Colomban Wendling
travis: Enable Windows cross-compilation
14
  - sudo apt-get install -y intltool libtool
15
  - test -n "$MINGW" || sudo apt-get install -y libgtk2.0-dev 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
7398 by Colomban Wendling
Update Scintilla to version 3.7.5 (#1503)
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
6939.1.1 by Colomban Wendling
travis: Add a Travis CI settings file
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
7074.2.20 by Colomban Wendling
Install python-lxml on Travis for the GtkDoc header generation
22
  - sudo apt-get install -y python-lxml
6939.1.1 by Colomban Wendling
travis: Add a Travis CI settings file
23
before_script:
24
  - export CFLAGS="-g -O2 -Werror=pointer-arith -Werror=aggregate-return -Werror=implicit-function-declaration"
25
script:
6939.1.2 by Colomban Wendling
travis: Enable Windows cross-compilation
26
  - NOCONFIGURE=1 ./autogen.sh
6939.1.1 by Colomban Wendling
travis: Add a Travis CI settings file
27
  - >
6939.1.2 by Colomban Wendling
travis: Enable Windows cross-compilation
28
    if [ -n "$MINGW" ]; then
29
      arg=-2; [ "$GTK3" = yes ] && arg=-3;
30
      unset CC CXX;
31
      sh ./scripts/cross-build-mingw.sh $arg;
32
    else
33
      mkdir _build                        &&
34
      cd _build                           &&
7398 by Colomban Wendling
Update Scintilla to version 3.7.5 (#1503)
35
      { ../configure --enable-gtk3=$GTK3 || { cat config.log; exit 1; } ; } &&
6939.1.2 by Colomban Wendling
travis: Enable Windows cross-compilation
36
      make -j2                            &&
37
      make -j2 check;
38
    fi