summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci/env.sh
blob: 7634f5deeed3192b31f97316b0d79f6fc0395aea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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/env_${CMAKE_CONFIGURATION}.sh"; then
  source ".gitlab/ci/env_${CMAKE_CONFIGURATION}.sh"
fi