Skip to content

Commit

Permalink
build test bin in out directory
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanl committed Jul 3, 2016
1 parent 4cdcf0e commit 9f67eeb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
cmd/doit/doit
.goxc.local.json
.DS_Store
builds
Expand All @@ -9,4 +8,5 @@ project.json
dist
public
docs/content
doctl

out/doctl
9 changes: 8 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@

set -eo pipefail

go build -ldflags "-X github.com/digitalocean/doctl/Build=`git rev-parse --short HEAD`" github.com/digitalocean/doctl/cmd/doctl
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
OUT_DIR="$DIR/../out"
mkdir -p $OUT_DIR

go build \
-o $OUT_DIR/doctl \
-ldflags "-X github.com/digitalocean/doctl/Build=`git rev-parse --short HEAD`" \
github.com/digitalocean/doctl/cmd/doctl

0 comments on commit 9f67eeb

Please sign in to comment.