]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
travis: Add build tests for NM plugin
authorTobias Brunner <tobias@strongswan.org>
Wed, 12 Feb 2020 14:41:36 +0000 (15:41 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 14 Feb 2020 13:53:26 +0000 (14:53 +0100)
.travis.yml
scripts/test.sh

index 3e448c9d9f83deba9aa0a4bca3b1b3c5f0106dad..a5cde8a597087b0f0619e9daa71979b5c3af2c97 100644 (file)
@@ -93,6 +93,8 @@ matrix:
     - env: TEST=printf-builtin LEAK_DETECTIVE=yes
     - env: TEST=printf-builtin LEAK_DETECTIVE=yes
       compiler: clang
+    - env: TEST=nm
+    - env: TEST=nm-no-glib
     # the crypto plugins are build-tested with clang via "all" above
     - env: TEST=botan
     - env: TEST=botan LEAK_DETECTIVE=yes
index c0de4874d3dffcb1c8c1e28e96772bb2c34439ac..d0c9a4767f1f1343b878f2497e48f92968a520c4 100755 (executable)
@@ -270,6 +270,17 @@ fuzzing)
                        symbolize=1:handle_segv=1:fast_unwind_on_fatal=0:external_symbolizer_path=/usr/bin/llvm-symbolizer-3.5
        fi
        ;;
+nm|nm-no-glib)
+       DEPS="gnome-common libsecret-1-dev libgtk-3-dev libnm-dev libnma-dev"
+       if test "$TEST" = "nm"; then
+               DEPS="$DEPS libnm-glib-vpn-dev libnm-gtk-dev"
+       else
+               CONFIG="$CONFIG --without-libnm-glib"
+       fi
+       cd src/frontends/gnome
+       # don't run ./configure with ./autogen.sh
+       export NOCONFIGURE=1
+       ;;
 dist)
        TARGET=distcheck
        ;;