-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from yuuki/improve_release
Improve release
- Loading branch information
Showing
13 changed files
with
132 additions
and
84 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ sudo: false | |
language: go | ||
|
||
go: | ||
- 1.10.x | ||
- 1.12 | ||
|
||
script: | ||
- make test |
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
FROM golang:1.10 | ||
FROM golang:1.12 | ||
|
||
RUN go get github.com/laher/goxc | ||
RUN mkdir -p /src | ||
WORKDIR /src | ||
COPY go.mod . | ||
COPY go.sum . | ||
|
||
ENV USER root | ||
WORKDIR /go/src/github.com/yuuki/gokc | ||
|
||
ADD . /go/src/github.com/yuuki/gokc | ||
RUN go mod download | ||
COPY . . |
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,6 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
ver=v$(gobump show -r) | ||
make crossbuild | ||
ghr -username yuuki -replace ${ver} dist/${ver} |
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 |
---|---|---|
@@ -1,3 +1,13 @@ | ||
package main | ||
|
||
var Version string = "0.4.2" | ||
// name is application name. | ||
const name = "gokc" | ||
|
||
// version is application version. | ||
const version = "0.4.2" | ||
|
||
// commit describes latest git commit hash. | ||
// This is automatically extracted by git describe --always. | ||
var commit string | ||
|
||
var date string |
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,8 @@ | ||
module github.com/yuuki/gokc | ||
|
||
go 1.12 | ||
|
||
require ( | ||
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db | ||
golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59 // indirect | ||
) |
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,9 @@ | ||
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db h1:62I3jR2EmQ4l5rM/4FEfDWcRD+abF5XlKShorW5LRoQ= | ||
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db/go.mod h1:l0dey0ia/Uv7NcFFVbCLtqEBQbrT4OCwCSKTEv6enCw= | ||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= | ||
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= | ||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | ||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= | ||
golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59 h1:QjA/9ArTfVTLfEhClDCG7SGrZkZixxWpwNCDiwJfh88= | ||
golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.