aboutsummaryrefslogtreecommitdiffstats
path: root/.travis/build.sh
diff options
context:
space:
mode:
Diffstat (limited to '.travis/build.sh')
-rwxr-xr-x.travis/build.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/.travis/build.sh b/.travis/build.sh
new file mode 100755
index 0000000..9e12ada
--- /dev/null
+++ b/.travis/build.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+set -ex
+
+if [[ -n "${TARGET}" ]] && [[ -e "travis/targets/${TARGET}.sh" ]]; then
+ source "travis/targets/${TARGET}.sh"
+else
+ echo "Target not defined or invalid!"
+ exit 1
+fi
+
+rm -rf build
+mkdir -p build
+
+build