summaryrefslogtreecommitdiff
path: root/other/travis/phase
blob: ac9bc3b428a92a0b3a865eff2f2755e2c8a24614 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

set -e -u -x

JOB="$1"
ENV="$2"
PHASE="$3"

. "other/travis/env.sh"
. "other/travis/env-$ENV.sh"

try_source() {
  SCRIPT="other/travis/$1"
  if [ -f "$SCRIPT" ]; then
    . "$SCRIPT"
  fi
}

try_source "$PHASE"
try_source "$ENV-$PHASE"
try_source "$JOB-$PHASE"
try_source "$JOB-$ENV-$PHASE"