mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 05:40:10 +00:00
08f8e48ca1
* travis: just merge linux/meson build with coverage one * update travis.yml and extract-var * change a bit call to codecov.sh * switch to ubuntu:bionic * fix docker.travis * fix LD_LIBRARY_PATH * Dockerfile.travis: add pkg-config * Dockerfile.travis: install npm * dockerfile.travis: somehow pkg-config was removed * travis: switch back to latest * travis: do not hardcode machine * move COVERAGE=1 after INSTALL_SYSTEM
30 lines
762 B
Bash
30 lines
762 B
Bash
#!/bin/bash
|
|
|
|
print_var()
|
|
{
|
|
VAR_NAME=$1
|
|
VAR_VALUE=$2
|
|
if [ "${VAR_VALUE}" != "" ] ; then
|
|
printf "export %s=%q\n" "${VAR_NAME}" "${VAR_VALUE}"
|
|
fi
|
|
}
|
|
|
|
env -0 | while IFS='=' read -r -d '' n v; do
|
|
if [[ "${n}" =~ ^TRAVIS* || "${n}" =~ ^R2* || "${n}" =~ SAN_* || "%{n}" =~ CODECOV_* || "%{n}" =~ VCS_* || "%{n}" =~ CI_* ]]; then
|
|
print_var "${n}" "${v}"
|
|
fi
|
|
done
|
|
|
|
# print extra variables
|
|
print_var CC "${CC}"
|
|
print_var CXX "${CXX}"
|
|
print_var CFLAGS "${CFLAGS}"
|
|
print_var LDFLAGS "${LDFLAGS}"
|
|
print_var CXXFLAGS "${CXXFLAGS}"
|
|
print_var TRAVIS "${TRAVIS}"
|
|
print_var INSTALL_SYSTEM "${INSTALL_SYSTEM}"
|
|
print_var MESON_OPTIONS "${MESON_OPTIONS}"
|
|
print_var COVERAGE "${COVERAGE}"
|
|
print_var SHIPPABLE "${SHIPPABLE}"
|
|
print_var CI "${CI}"
|