mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
2db31d95fd
This is the first step towards unifying travis configs for toxcore, hstox, and qtox.
23 lines
303 B
Bash
Executable File
23 lines
303 B
Bash
Executable File
#!/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"
|