From 2fb9e93cfa03622c00488126735733ceda45be94 Mon Sep 17 00:00:00 2001 From: somdoron Date: Wed, 11 Sep 2019 13:21:36 +0300 Subject: [PATCH] problem: ci doesn't build with nss Solution: add an nss build to CI --- .travis.yml | 7 +++++++ ci_build.sh | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/.travis.yml b/.travis.yml index d8f313d5..2e69d36c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,6 +44,13 @@ matrix: - env: BUILD_TYPE=default CURVE=tweetnacl IPv6=ON os: linux dist: precise + - env: BUILD_TYPE=default CURVE=tweetnacl USE_NSS=yes + os: linux + dist: precise + addons: + apt: + packages: + - libnss3-dev - env: BUILD_TYPE=coverage CURVE=tweetnacl DRAFT=enabled os: linux addons: diff --git a/ci_build.sh b/ci_build.sh index 86ae552f..849c4560 100755 --- a/ci_build.sh +++ b/ci_build.sh @@ -24,6 +24,10 @@ if [ $BUILD_TYPE == "default" ]; then CONFIG_OPTS+=("LDFLAGS=-fuse-ld=gold") fi + if [ $USE_NSS == "yes" ]; then + CONFIG_OPTS+=("--with-nss") + fi + if [ -z $CURVE ]; then CONFIG_OPTS+=("--disable-curve") elif [ $CURVE == "libsodium" ]; then