]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
ci: updated travis and appveyor for nss/nspr
authorjason taylor <jtfas90@gmail.com>
Wed, 3 Apr 2019 17:26:24 +0000 (13:26 -0400)
committerVictor Julien <victor@inliniac.net>
Thu, 18 Apr 2019 10:02:27 +0000 (12:02 +0200)
* added nss and nspr requirements for appveyor build
* added nss and nspr requirements for travis builds
* added travis build without nss and nspr

Signed-off-by: jason taylor <jtfas90@gmail.com>
.travis.yml
appveyor.yml
configure.ac

index 37710deb57819ecb4783082769a9eb5502bf159b..ae1523f53c1491fb783eaf19c163389fb8334fe6 100644 (file)
@@ -4,9 +4,38 @@ language: c
 
 addons:
   apt:
+    # Define the required packages without nss/nspr so we can do a
+    # build without nss/nspr
+    packages-without-nssnspr: &packages-without-nssnspr
+      - libpcre3
+      - libpcre3-dbg
+      - libpcre3-dev
+      - build-essential
+      - autoconf
+      - automake
+      - libtool
+      - libpcap-dev
+      - libnet1-dev
+      - libyaml-0-2
+      - libyaml-dev
+      - zlib1g
+      - zlib1g-dev
+      - libcap-ng-dev
+      - libcap-ng0
+      - make
+      - libmagic-dev
+      - libnetfilter-queue-dev
+      - libnetfilter-queue1
+      - libnfnetlink-dev
+      - libnfnetlink0
+      - libhiredis-dev
+      - libjansson-dev
+      - libevent-dev
+      - libevent-pthreads-2.0-5
     # Define the required packages without libjansson so we can do a
     # build without libjansson.
     packages-without-jansson: &packages-without-jansson
+      - libnss3-dev
       - libpcre3
       - libpcre3-dbg
       - libpcre3-dev
@@ -174,6 +203,17 @@ matrix:
       env:
         - NAME="osx,gcc"
         - *default-cflags
+    # Linux, gcc, no nss/nspr.
+    - os: linux
+      compiler: gcc
+      env:
+        - NAME="linux,gcc,no-nssnspr"
+        - *default-cflags
+        - ARGS="--disable-nss --disable-nspr"
+      addons:
+        apt:
+          packages:
+            - *packages-without-nssnspr
 
 script:
   - |
index c12404f22ecff6ff5a6b0ba593cf3b4e6ee204ec..f3d96e06cc6732cbceffb522a44e52ed7b966e71 100644 (file)
@@ -46,6 +46,8 @@ before_build:
   - c:\msys64\usr\bin\pacman -Su --noconfirm mingw-w64-"%MINGW_ARCH%"-pcre
   - c:\msys64\usr\bin\pacman -Su --noconfirm mingw-w64-"%MINGW_ARCH%"-rust
   - c:\msys64\usr\bin\pacman -Su --noconfirm mingw-w64-"%MINGW_ARCH%"-jansson
+  - c:\msys64\usr\bin\pacman -Su --noconfirm mingw-w64-"%MINGW_ARCH%"-nss
+  - c:\msys64\usr\bin\pacman -Su --noconfirm mingw-w64-"%MINGW_ARCH%"-nspr
 
 install:
   - choco install winpcap # winpcap userspace
index 2cd0a1e72eac90dd0ab23836d054c258d2adbd98..a6669ec479b68941aee9cf2f45dd96508a0fcab2 100644 (file)
             echo "   Fedora: dnf install nspr-devel"
             echo "   CentOS/RHEL: yum install nspr-devel"
             echo
-            exit 1
         fi
     fi
 
             echo "   Fedora: dnf install nss-devel"
             echo "   CentOS/RHEL: yum install nss-devel"
             echo
-            exit 1
         fi
     fi