76f8486e16
The ARM64 config file has been renamed in the commitae2f2fee24
("build: rename linuxapp to linux in meson cross files"). Fixes:99889bd852
("ci: introduce Travis builds for GitHub repositories") Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Aaron Conole <aconole@redhat.com>
25 lines
541 B
Bash
Executable File
25 lines
541 B
Bash
Executable File
#!/bin/sh -xe
|
|
|
|
on_error() {
|
|
if [ $? = 0 ]; then
|
|
exit
|
|
fi
|
|
FILES_TO_PRINT="build/meson-logs/testlog.txt build/.ninja_log build/meson-logs/meson-log.txt"
|
|
|
|
for pr_file in $FILES_TO_PRINT; do
|
|
if [ -e "$pr_file" ]; then
|
|
cat "$pr_file"
|
|
fi
|
|
done
|
|
}
|
|
trap on_error EXIT
|
|
|
|
if [ "$AARCH64" = "1" ]; then
|
|
# convert the arch specifier
|
|
OPTS="$OPTS --cross-file config/arm/arm64_armv8_linux_gcc"
|
|
fi
|
|
|
|
OPTS="$OPTS --default-library=$DEF_LIB"
|
|
meson build --werror -Dexamples=all $OPTS
|
|
ninja -C build
|