-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Meson provides a significant build speed up. It is also conceptually simpler than autotools.
- Loading branch information
1 parent
d844408
commit e7bc250
Showing
18 changed files
with
284 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash -ex | ||
|
||
case "$1" in | ||
before_install) | ||
if [ "$TRAVIS_OS_NAME" == "linux" ]; then | ||
docker create \ | ||
--name=$TRAVIS_COMMIT -t \ | ||
-v `pwd`:/tmp/build \ | ||
-w /tmp/build \ | ||
$DISTRO /bin/cat | ||
docker start $TRAVIS_COMMIT | ||
fi | ||
;; | ||
|
||
after_script) | ||
if [ "$TRAVIS_OS_NAME" == "linux" ]; then | ||
docker kill $TRAVIS_COMMIT | ||
docker rm $TRAVIS_COMMIT | ||
fi | ||
;; | ||
|
||
*) | ||
if [ -x ./.travis.$1 ]; then | ||
if [ "$TRAVIS_OS_NAME" == "linux" ]; then | ||
docker exec \ | ||
`bash <(curl -s https://codecov.io/env)` \ | ||
-e CC -e DISTRO \ | ||
$TRAVIS_COMMIT ./.travis.$1 | ||
else | ||
./.travis.$1 | ||
fi | ||
fi | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,30 @@ | ||
#!/bin/bash -ex | ||
|
||
[[ ! "$DISTRO" =~ ^osx: ]] && export CFLAGS=-coverage | ||
[[ ! "$DISTRO" =~ ^osx: ]] && export LDFLAGS=-lgcov | ||
function findexe() { | ||
while [ $# -gt 0 ]; do | ||
while read -d: path; do | ||
[ -f "$path/$1" -a -x "$path/$1" ] && echo "$path/$1" && return 0 | ||
done <<< "$PATH:" | ||
shift | ||
done | ||
return 1 | ||
} | ||
|
||
autoreconf -if | ||
LC_ALL=`locale -a | grep -i '^en_US\.utf'` || LC_ALL=`locale -a | grep -i '^c\.utf'` | ||
export LC_ALL | ||
|
||
mkdir build | ||
cd build | ||
|
||
if ! ../configure --prefix=/usr --libdir=/usr/lib64 --disable-openmp; then | ||
cat ./config.log | ||
exit 1 | ||
fi | ||
export CFLAGS="-g -coverage" | ||
|
||
make -j8 -k check V=1 TESTS= | ||
|
||
if ! make -j8 check; then | ||
cat ./tests/test-suite.log | ||
if ! meson ..; then | ||
cat meson-logs/meson-log.txt >&2 | ||
exit 1 | ||
fi | ||
|
||
bash <(curl -s https://codecov.io/bash) | ||
ninja=`findexe ninja ninja-build` | ||
"$ninja" test | ||
|
||
bash <(curl -s https://codecov.io/bash) 2>&1 \ | ||
| egrep -v "has arcs (to entry|from exit) block" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
executable(meson.project_name(), | ||
'jose.c', 'jose.h', | ||
'b64/b64.h', | ||
'b64/dec.c', | ||
'b64/enc.c', | ||
'jwk/jwk.h', | ||
'jwk/eql.c', | ||
'jwk/exc.c', | ||
'jwk/gen.c', | ||
'jwk/pub.c', | ||
'jwk/thp.c', | ||
'jwk/use.c', | ||
'jws/jws.h', | ||
'jws/fmt.c', | ||
'jws/sig.c', | ||
'jws/ver.c', | ||
'jwe/jwe.h', | ||
'jwe/pwd.h', | ||
'jwe/fmt.c', | ||
'jwe/dec.c', | ||
'jwe/enc.c', | ||
'alg.c', | ||
'fmt.c', | ||
dependencies: jansson, | ||
link_with: libjose, | ||
install: true | ||
) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
install_man( | ||
'ronn/jose.1', | ||
'ronn/jose-alg.1', | ||
'ronn/jose-fmt.1', | ||
'ronn/jose-b64-dec.1', | ||
'ronn/jose-b64-enc.1', | ||
'ronn/jose-jwe-dec.1', | ||
'ronn/jose-jwe-enc.1', | ||
'ronn/jose-jwe-fmt.1', | ||
'ronn/jose-jwk-exc.1', | ||
'ronn/jose-jwk-gen.1', | ||
'ronn/jose-jwk-pub.1', | ||
'ronn/jose-jwk-thp.1', | ||
'ronn/jose-jwk-use.1', | ||
'ronn/jose-jws-fmt.1', | ||
'ronn/jose-jws-sig.1', | ||
'ronn/jose-jws-ver.1', | ||
'doxygen/man/man3/jose_b64.3', | ||
'doxygen/man/man3/jose_jwk.3', | ||
'doxygen/man/man3/jose_jws.3', | ||
'doxygen/man/man3/jose_cfg.3', | ||
'doxygen/man/man3/jose_jwe.3', | ||
'doxygen/man/man3/jose_io_t.3', | ||
'doxygen/man/man3/jose_io.3', | ||
) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.