Commit 3420e6e0 authored by Luca Boccassi's avatar Luca Boccassi

Problem: CI still thinks libsodium is default

Solution: build by default with tweetnacl, and add sub-build project
to test libsodium
parent 1fb48409
...@@ -9,7 +9,7 @@ os: ...@@ -9,7 +9,7 @@ os:
env: env:
- BUILD_TYPE=default - BUILD_TYPE=default
- BUILD_TYPE=android - BUILD_TYPE=android
- BUILD_TYPE=tweetnacl - BUILD_TYPE=libsodium
- BUILD_TYPE=cmake - BUILD_TYPE=cmake
sudo: false sudo: false
......
...@@ -13,11 +13,17 @@ CONFIG_OPTS+=("LDFLAGS=-L${BUILD_PREFIX}/lib") ...@@ -13,11 +13,17 @@ CONFIG_OPTS+=("LDFLAGS=-L${BUILD_PREFIX}/lib")
CONFIG_OPTS+=("PKG_CONFIG_PATH=${BUILD_PREFIX}/lib/pkgconfig") CONFIG_OPTS+=("PKG_CONFIG_PATH=${BUILD_PREFIX}/lib/pkgconfig")
CONFIG_OPTS+=("--prefix=${BUILD_PREFIX}") CONFIG_OPTS+=("--prefix=${BUILD_PREFIX}")
# Build required projects first
# libsodium
git clone --depth 1 -b stable git://github.com/jedisct1/libsodium.git
( cd libsodium; ./autogen.sh; ./configure --prefix=$BUILD_PREFIX; make check; make install)
# Build and check this project # Build and check this project
( (
cd ../..; cd ../..;
./autogen.sh && ./autogen.sh &&
./configure "${CONFIG_OPTS[@]}" --with-tweetnacl=yes && ./configure "${CONFIG_OPTS[@]}" --with-libsodium=yes &&
make && make &&
( if make check; then true; else cat test-suite.log; exit 1; fi ) && ( if make check; then true; else cat test-suite.log; exit 1; fi ) &&
make install make install
......
...@@ -14,16 +14,10 @@ if [ $BUILD_TYPE == "default" ]; then ...@@ -14,16 +14,10 @@ if [ $BUILD_TYPE == "default" ]; then
CONFIG_OPTS+=("PKG_CONFIG_PATH=${BUILD_PREFIX}/lib/pkgconfig") CONFIG_OPTS+=("PKG_CONFIG_PATH=${BUILD_PREFIX}/lib/pkgconfig")
CONFIG_OPTS+=("--prefix=${BUILD_PREFIX}") CONFIG_OPTS+=("--prefix=${BUILD_PREFIX}")
# Build required projects first
# libsodium
git clone --depth 1 -b stable git://github.com/jedisct1/libsodium.git
( cd libsodium; ./autogen.sh; ./configure --prefix=$BUILD_PREFIX; make check; make install)
# Build and check this project # Build and check this project
( (
./autogen.sh && ./autogen.sh &&
./configure "${CONFIG_OPTS[@]}" --with-libsodium=yes && ./configure "${CONFIG_OPTS[@]}" &&
make && make &&
( if make check; then true; else cat test-suite.log; exit 1; fi ) && ( if make check; then true; else cat test-suite.log; exit 1; fi ) &&
make install make install
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment