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 3e448c9..a5cde8a 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 c0de487..d0c9a47 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
        ;;