diff options
Diffstat (limited to 'other/travis/phase')
-rwxr-xr-x | other/travis/phase | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/other/travis/phase b/other/travis/phase deleted file mode 100755 index cb9c2abf..00000000 --- a/other/travis/phase +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | set -e -u -x | ||
4 | |||
5 | JOB="$1" | ||
6 | ENV="$2" | ||
7 | PHASE="$3" | ||
8 | STAGE="" | ||
9 | |||
10 | set +u | ||
11 | if [ ! -z "$4" ] ; then | ||
12 | STAGE="$4" | ||
13 | fi | ||
14 | set -u | ||
15 | |||
16 | . "other/travis/env.sh" | ||
17 | . "other/travis/env-$ENV.sh" | ||
18 | |||
19 | try_source() { | ||
20 | SCRIPT="other/travis/$1" | ||
21 | if [ -f "$SCRIPT" ]; then | ||
22 | . "$SCRIPT" | ||
23 | fi | ||
24 | if [ ! -z "$STAGE" ] && [ -f "$SCRIPT-$STAGE" ]; then | ||
25 | . "$SCRIPT-$STAGE" | ||
26 | fi | ||
27 | } | ||
28 | |||
29 | try_source "$PHASE" | ||
30 | try_source "$ENV-$PHASE" | ||
31 | try_source "$JOB-$PHASE" | ||
32 | try_source "$JOB-$ENV-$PHASE" | ||