diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2017-02-10 01:14:48 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2017-02-10 01:14:48 +0100 |
commit | 6e8e544cb8559aa5d8db72176c957e2513e3898a (patch) | |
tree | 995ad3176ebdbaa4b75c4dc1c938652f1a283ab3 /travis/build.sh | |
parent | 68aa9e1b26b0af916423def6892de7fdb8a03048 (diff) | |
download | blogc-6e8e544cb8559aa5d8db72176c957e2513e3898a.tar.gz blogc-6e8e544cb8559aa5d8db72176c957e2513e3898a.tar.bz2 blogc-6e8e544cb8559aa5d8db72176c957e2513e3898a.zip |
travis: splitted scripts
Diffstat (limited to 'travis/build.sh')
-rwxr-xr-x | travis/build.sh | 15 |
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 |