go-jsonnet/travisBuild.sh
Lars Wander e01563f538 Adds TravisCI releaes process
Given the <tag> chosen in the GitHub releases page, this builds jsonnet
for darwin & linux amd64 (we can add more if needed), and uploads to
gs://jsonnet/<tag>/<os>/<arch>/jsonnet
2018-06-22 14:14:14 -04:00

15 lines
542 B
Bash
Executable File

#!/usr/bin/env bash
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo -e "Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]"
$HOME/gopath/bin/goveralls -service=travis-ci
./tests.sh --skip-go-test
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ]; then
echo -e 'Build Branch for Release => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
env VERSION=$TRAVIS_TAG ./release.sh
else
echo -e 'Unknown build command for PR? ('$TRAVIS_PULL') Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
fi