fwupd/contrib/ci/build_and_test.sh
Matthias Klumpp 919e4ec61d ci: Echo shell commands, explicitly set error
By echoing the commands it is way easier to spot what the CI was doing
when a command failed. Setting fail-on-error mode explicitly makes sure
we always run with it, even if someone invokes the script with `bash
<scriptname>`
2017-08-16 23:00:29 -05:00

21 lines
389 B
Bash
Executable File

#!/bin/sh
set -e
set -x
export LC_ALL=C.UTF-8
mkdir -p build && cd build
rm * -rf
meson .. \
-Denable-doc=true \
-Denable-man=true \
-Denable-tests=true \
-Denable-thunderbolt=false \
-Denable-uefi=true \
-Denable-dell=true \
-Denable-synaptics=true \
-Denable-colorhug=true $@
ninja -v || bash
ninja test -v
DESTDIR=/tmp/install-ninja ninja install
cd ..