aboutsummaryrefslogtreecommitdiffstats
path: root/.travis/build.sh
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2017-02-10 01:21:49 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2017-02-10 01:21:49 +0100
commitba25922f737076fbcdbd81a01ce91240dca749db (patch)
tree96ecafecd5764ee91141dc99f5c54af218ac0c92 /.travis/build.sh
parentb4b034d43b81e7f7febc337cc4d0abe114e3bfb5 (diff)
downloadblogc-ba25922f737076fbcdbd81a01ce91240dca749db.tar.gz
blogc-ba25922f737076fbcdbd81a01ce91240dca749db.tar.bz2
blogc-ba25922f737076fbcdbd81a01ce91240dca749db.zip
travis: removed travis dir to .travis
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