aboutsummaryrefslogtreecommitdiffstats
path: root/travis/build.sh
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2017-02-10 01:14:48 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2017-02-10 01:14:48 +0100
commit6e8e544cb8559aa5d8db72176c957e2513e3898a (patch)
tree995ad3176ebdbaa4b75c4dc1c938652f1a283ab3 /travis/build.sh
parent68aa9e1b26b0af916423def6892de7fdb8a03048 (diff)
downloadblogc-6e8e544cb8559aa5d8db72176c957e2513e3898a.tar.gz
blogc-6e8e544cb8559aa5d8db72176c957e2513e3898a.tar.bz2
blogc-6e8e544cb8559aa5d8db72176c957e2513e3898a.zip
travis: splitted scripts
Diffstat (limited to 'travis/build.sh')
-rwxr-xr-xtravis/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