-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
set -e -o pipefail | ||
|
||
ROOT=$(dirname "${BASH_SOURCE}")/.. | ||
cd "${ROOT}" | ||
|
||
echo '==========================================================================================' | ||
echo "= lstf licensed under: =" | ||
echo "https://github.com/yuuki/lstf/" | ||
echo | ||
cat "${ROOT}"/LICENSE | ||
echo | ||
echo "= LICENSE $(cat ${ROOT}/LICENSE | md5sum | awk '{print $1}')" | ||
echo '==========================================================================================' | ||
echo | ||
|
||
echo "= Go (the standard library) licensed under: =" | ||
echo "https://golang.org/" | ||
echo | ||
curl -sS https://raw.githubusercontent.com/golang/go/release-branch.go1.9/LICENSE 2>/dev/null | ||
echo | ||
echo '==========================================================================================' | ||
echo | ||
|
||
find_names=(-iname 'licen[sc]e*') | ||
for repo in $(dep status -json | jq -rM '.[].ProjectRoot'); do | ||
echo | ||
echo '==========================================================================================' | ||
echo "= vendor/${repo} licensed under: =" | ||
echo "https://${repo}/" | ||
for lic in $(find vendor/${repo} -xdev -follow -maxdepth 1 -type f "${find_names[@]}"); do | ||
echo | ||
cat "${lic}" | ||
echo | ||
echo "= ${lic} $(cat ${lic} | md5sum | awk '{print $1}')" | ||
done | ||
echo '==========================================================================================' | ||
echo | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [[ $(git status -s) != "" ]]; then | ||
echo 2>&1 "git is currently in a dirty state" | ||
exit 1 | ||
fi | ||
|
||
current_version=$(gobump show -r) | ||
|
||
echo "current version: $current_version" | ||
read -p "input next version: " next_version | ||
|
||
echo "--> Bumping version $next_version" | ||
gobump set "$next_version" -w | ||
echo "--> Generating CHANGELOG" | ||
ghch -w -N "v$next_version" | ||
|
||
git commit -am "Bump version $next_version" | ||
git tag "v$next_version" | ||
git push && git push --tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
set -e -o pipefail | ||
|
||
DOCKER_IMAGE_NAME="transtracer-test" | ||
DOCKER_CONTAINER_NAME="transtracer-test-container" | ||
|
||
if [[ $(docker ps -a | grep $DOCKER_CONTAINER_NAME) != "" ]]; then | ||
docker rm -f $DOCKER_CONTAINER_NAME 2>/dev/null | ||
fi | ||
|
||
docker build -t $DOCKER_IMAGE_NAME . | ||
|
||
docker run --volume "$GOPATH"/src/:/go/src/ -e GOOS=$GOOS -e GOARCH=$GOARCH --name $DOCKER_CONTAINER_NAME $DOCKER_IMAGE_NAME "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
ver=v$(gobump show -r) | ||
make crossbuild | ||
ghr -username yuuki -replace ${ver} dist/${ver} |