1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/bash set -e quietly() { readonly log="/tmp/quietly-$RANDOM.log" if ! "$@" >"$log" 2>&1; then ret=$? cat "$log" rm -f "$log" exit $ret fi rm -f "$log" } if test -r ".gitlab/ci/pre_build_${CMAKE_CONFIGURATION}.sh"; then source ".gitlab/ci/pre_build_${CMAKE_CONFIGURATION}.sh" fi