2017-08-14 06:11:11 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# jenkins build helper script for libasn1c. This is how we build on jenkins.osmocom.org
|
|
|
|
|
2017-10-27 20:48:14 +00:00
|
|
|
set -e
|
2017-10-27 20:48:41 +00:00
|
|
|
osmo-clean-workspace.sh
|
2017-10-27 20:48:14 +00:00
|
|
|
|
2017-08-14 06:11:11 +00:00
|
|
|
set +x
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo " =============================== libasn1c ==============================="
|
|
|
|
echo
|
|
|
|
set -x
|
|
|
|
|
|
|
|
autoreconf --install --force
|
2018-03-05 19:50:26 +00:00
|
|
|
./configure --enable-werror
|
2018-12-07 10:05:18 +00:00
|
|
|
|
|
|
|
# Parallel make is disabled due to a race condition. On Jenkins, it often
|
|
|
|
# aborts the build with: "asn1p_y.y:357:13: error: 'param' undeclared"
|
|
|
|
$MAKE -j1
|
2017-08-14 06:11:11 +00:00
|
|
|
$MAKE distcheck \
|
|
|
|
|| cat-testlogs.sh
|
2017-10-27 20:48:41 +00:00
|
|
|
|
|
|
|
osmo-clean-workspace.sh
|