2016-03-13 20:52:31 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
|
|
|
mkdir tmp
|
|
|
|
BUILD_PREFIX=$PWD/tmp
|
|
|
|
|
2020-09-04 10:23:37 +02:00
|
|
|
source ../../config.sh
|
|
|
|
set_config_opts
|
2016-03-13 20:52:31 +01:00
|
|
|
|
2020-09-04 10:23:37 +02:00
|
|
|
CONFIG_OPTS+=("--enable-code-coverage")
|
2016-03-13 20:52:31 +01:00
|
|
|
|
|
|
|
pip install --user cpp-coveralls
|
|
|
|
|
|
|
|
# Build, check, and install from local source
|
2020-09-04 10:00:40 +02:00
|
|
|
( cd ../..; ./autogen.sh && ./configure "${CONFIG_OPTS[@]}" && make VERBOSE=1 -j5 check && coveralls --include src --exclude src/tweetnacl.c --exclude src/tweetnacl.h --build-root . --gcov-options '\-lp') || exit 1
|