This repository has been archived by the owner on Jan 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 #38 from jehiah/release_38
1.0 release
- Loading branch information
Showing
12 changed files
with
91 additions
and
11 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 |
---|---|---|
|
@@ -22,3 +22,5 @@ _cgo_export.* | |
_testmain.go | ||
|
||
*.exe | ||
dist | ||
.godeps |
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,9 +1,12 @@ | ||
language: go | ||
install: | ||
- go get github.com/bmizerany/assert | ||
- go get github.com/bitly/go-simplejson | ||
- go get github.com/mreiferson/go-options | ||
- go get github.com/BurntSushi/toml | ||
go: | ||
- 1.2.2 | ||
- 1.3.3 | ||
script: | ||
- curl -s https://raw.githubusercontent.com/pote/gpm/v1.3.1/bin/gpm > gpm | ||
- chmod +x gpm | ||
- ./gpm install | ||
- ./test.sh | ||
notifications: | ||
email: false | ||
|
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,4 @@ | ||
github.com/BurntSushi/toml 3883ac1ce943878302255f538fce319d23226223 | ||
github.com/bitly/go-simplejson 3378bdcb5cebedcbf8b5750edee28010f128fe24 | ||
github.com/mreiferson/go-options ee94b57f2fbf116075426f853e5abbcdfeca8b3d | ||
github.com/bmizerany/assert e17e99893cb6509f428e1728281c2ad60a6b31e3 |
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
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,30 @@ | ||
#!/bin/bash | ||
|
||
# build binary distributions for linux/amd64 and darwin/amd64 | ||
set -e | ||
|
||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
echo "working dir $DIR" | ||
mkdir -p $DIR/dist | ||
mkdir -p $DIR/.godeps | ||
export GOPATH=$DIR/.godeps:$GOPATH | ||
gpm install | ||
|
||
os=$(go env GOOS) | ||
arch=$(go env GOARCH) | ||
version=$(cat $DIR/version.go | grep "const VERSION" | awk '{print $NF}' | sed 's/"//g') | ||
goversion=$(go version | awk '{print $3}') | ||
|
||
echo "... running tests" | ||
./test.sh || exit 1 | ||
|
||
for os in linux darwin; do | ||
echo "... building v$version for $os/$arch" | ||
BUILD=$(mktemp -d -t google_auth_proxy) | ||
TARGET="google_auth_proxy-$version.$os-$arch.$goversion" | ||
GOOS=$os GOARCH=$arch CGO_ENABLED=0 go build -o $BUILD/$TARGET/google_auth_proxy || exit 1 | ||
pushd $BUILD | ||
tar czvf $TARGET.tar.gz $TARGET | ||
mv $TARGET.tar.gz $DIR/dist | ||
popd | ||
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
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
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,5 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
go test -timeout 60s ./... | ||
GOMAXPROCS=4 go test -timeout 60s -race ./... |
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,3 @@ | ||
package main | ||
|
||
const VERSION = "0.1.0" | ||
const VERSION = "1.0" |