[geany/geany-plugins] ce9708: Merge pull request #394 from b4n/travis-new-infrastructure

Frank Lanitz git-noreply at xxxxx
Wed Mar 9 19:34:22 UTC 2016


Branch:      refs/heads/master
Author:      Frank Lanitz <frank at frank.uvena.de>
Committer:   Frank Lanitz <frank at frank.uvena.de>
Date:        Wed, 09 Mar 2016 19:34:22 UTC
Commit:      ce9708d9c95a1749d9d82704f5a184feb3004720
             https://github.com/geany/geany-plugins/commit/ce9708d9c95a1749d9d82704f5a184feb3004720

Log Message:
-----------
Merge pull request #394 from b4n/travis-new-infrastructure

Enable Travis CI v2


Modified Paths:
--------------
    .travis.yml

Modified: .travis.yml
139 lines changed, 139 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,139 @@
+language: c
+
+sudo: false
+
+compiler:
+  - gcc
+
+env:
+  global:
+    - LIBGIT2_VERSION=0.21.5
+  matrix:
+    - GTK3=no
+    - GTK3=yes
+
+cache:
+  ccache: true
+  directories:
+    - $HOME/geany/gtk3
+    - $HOME/geany/gtk2
+    - $HOME/libgit2-$LIBGIT2_VERSION
+
+addons:
+  apt:
+    packages:
+    - libgtk2.0-dev
+    - libgtk-3-dev
+    - intltool
+    - libtool
+    - python-docutils
+    - check
+    # FIXME: there are weird error with spellcheck and Ubuntu 12.04's version of cppcheck (1.52)
+    - cppcheck
+    # debugger
+    - libvte-dev
+    # devhelp
+    - libwebkitgtk-dev
+    - libwnck-dev
+    - libgconf2-dev
+    - zlib1g-dev
+    # geanygendoc
+    - libctpl-dev
+    # geanylua
+    - liblua5.1-0-dev
+    # geanypg
+    - libgpgme11-dev
+    # geanypy
+    - python-dev
+    - python-gtk2-dev
+    # geanyvc
+    - libgtkspell-dev
+    - libgtkspell-3-dev
+    # geaniuspaste/updatechecker
+    - libsoup2.4-dev
+    # git-changebar
+    # Ubuntu 12.04 doesn't have libgit2, 14.04 has a too old one, so we build
+    # our own for now.
+    #- libgit2-dev
+    # markdown
+    - libmarkdown2-dev
+    # markdown/webhelper
+    - libwebkitgtk-3.0-dev
+    # multiterm
+    - valac
+    # pretty-printer
+    - libxml2-dev
+    # spellcheck
+    - libenchant-dev
+
+    # for libgit2 build
+    - cmake
+
+before_install:
+  # build Geany
+  - TEMPDIR=$(mktemp -d)
+  - git clone git://github.com/geany/geany.git "$TEMPDIR/geany"
+  - geany_commit=$(cd "$TEMPDIR/geany" && git rev-parse HEAD)
+  - gtkver=gtk2
+  - test "x$GTK3" = xno || gtkver=gtk3
+  - cachedir="$HOME/geany/$gtkver/"
+  - cache_id=$(cat "$cachedir/commit-id" 2>/dev/null || echo "none")
+  # check if the cache is up-to-date, and either use it, or (re-)create it
+  - >
+    if test "$geany_commit" = "$cache_id"; then
+      echo "Cache '$cachedir' looks good, using it (ID: $cache_id).";
+    else
+      echo "Cache '$cachedir' is missing, outdated or invalid, dropping it.";
+      echo "  Cache ID: $cache_id";
+      echo "  Geany ID: $geany_commit";
+      rm "$cachedir" -rf || exit 1;
+      ( cd "$TEMPDIR/geany"                                   &&
+        NOCONFIGURE=1 ./autogen.sh                            &&
+        ./configure --prefix="$cachedir" --enable-gtk3=$GTK3  &&
+        make -j2                                              &&
+        make install || exit 1;
+        git rev-parse HEAD > "$cachedir/commit-id" || exit 2;
+      ) || exit $?;
+    fi
+  - test -z "$TEMPDIR" || rm -rf "$TEMPDIR"
+  - export PKG_CONFIG_PATH="$cachedir/lib/pkgconfig:$PKG_CONFIG_PATH"
+  - export LD_LIBRARY_PATH="$cachedir/lib:$LD_LIBRARY_PATH"
+
+  # build libgit2
+  - TEMPDIR=$(mktemp -d)
+  - libgit2dir="libgit2-$LIBGIT2_VERSION"
+  - >
+    if test -f "$HOME/$libgit2dir/lib/pkgconfig/libgit2.pc"; then
+      echo "Using pre-built libgit2 v$LIBGIT2_VERSION.";
+    else
+      ( cd $TEMPDIR || exit 1;
+        wget -q "https://github.com/libgit2/libgit2/archive/v$LIBGIT2_VERSION.tar.gz" -O - |
+          tar -xz "$libgit2dir" || exit 2;
+        cd "$libgit2dir" || exit 3;
+        cmake .                                       \
+          -DCMAKE_INSTALL_PREFIX="$HOME/$libgit2dir"  \
+          -DCMAKE_RULE_MESSAGES=OFF                   \
+          -DBUILD_CLAR=OFF                            \
+          -DBUILD_SHARED_LIBS=ON                      \
+          || exit 4;
+        cmake --build . --target install -- -j2 || exit 5;
+      ) || exit $?;
+    fi
+  - test -z "$TEMPDIR" || rm -rf "$TEMPDIR"
+  - export PKG_CONFIG_PATH="$HOME/$libgit2dir/lib/pkgconfig:$PKG_CONFIG_PATH"
+  - export LD_LIBRARY_PATH="$HOME/$libgit2dir/lib:$LD_LIBRARY_PATH"
+
+before_script:
+  # prepare for GP
+  - export CFLAGS="-g -O2 -Werror=pointer-arith -Werror=aggregate-return -Werror=implicit-function-declaration"
+
+script:
+  - >
+    NOCONFIGURE=1 ./autogen.sh  &&
+    mkdir _build                &&
+    cd _build                   &&
+    ../configure                &&
+    make -j2                    &&
+    make -j2 check
+after_script:
+  - test -z "$TEMPDIR" || rm -rf "$TEMPDIR"



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list