mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 10:52:56 +01:00
Problem: no CI build with tweetnacl
Solution: add builds/tweetnacl/ci_build.sh and add it in travis.yml
This commit is contained in:
parent
6681bcf08c
commit
84544ca6e2
@ -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
24
builds/tweetnacl/ci_build.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user