Commit 84544ca6 authored by Luca Boccassi's avatar Luca Boccassi

Problem: no CI build with tweetnacl

Solution: add builds/tweetnacl/ci_build.sh and add it in travis.yml
parent 6681bcf0
......@@ -9,6 +9,7 @@ os:
env:
- BUILD_TYPE=default
- BUILD_TYPE=android
- BUILD_TYPE=tweetnacl
sudo: false
......
#!/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
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