Problem: no CI build with tweetnacl

Solution: add builds/tweetnacl/ci_build.sh and add it in travis.yml
This commit is contained in:
Luca Boccassi 2016-02-08 11:15:25 +00:00
parent 6681bcf08c
commit 84544ca6e2
2 changed files with 25 additions and 0 deletions

View File

@ -9,6 +9,7 @@ os:
env:
- BUILD_TYPE=default
- BUILD_TYPE=android
- BUILD_TYPE=tweetnacl
sudo: false

24
builds/tweetnacl/ci_build.sh Executable file
View File

@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -x
mkdir tmp
BUILD_PREFIX=$PWD/tmp
CONFIG_OPTS=()
CONFIG_OPTS+=("CFLAGS=-I${BUILD_PREFIX}/include")
CONFIG_OPTS+=("CPPFLAGS=-I${BUILD_PREFIX}/include")
CONFIG_OPTS+=("CXXFLAGS=-I${BUILD_PREFIX}/include")
CONFIG_OPTS+=("LDFLAGS=-L${BUILD_PREFIX}/lib")
CONFIG_OPTS+=("PKG_CONFIG_PATH=${BUILD_PREFIX}/lib/pkgconfig")
CONFIG_OPTS+=("--prefix=${BUILD_PREFIX}")
# Build and check this project
(
cd ../..;
./autogen.sh &&
./configure "${CONFIG_OPTS[@]}" --with-tweetnacl=yes &&
make &&
( if make check; then true; else cat test-suite.log; exit 1; fi ) &&
make install
) || exit 1