mirror of
https://github.com/google/go-jsonnet.git
synced 2025-09-29 01:11:02 +02:00
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
15 lines
542 B
Bash
Executable File
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
|
|
|