diff options
author | Jakob Borg <jakob@nym.se> | 2014-04-08 15:16:07 +0200 |
---|---|---|
committer | Jakob Borg <jakob@nym.se> | 2014-04-08 15:16:13 +0200 |
commit | a203d99182732e1ed41922d1a068978aafa199cb (patch) | |
tree | 1c0900070e1c402ede261b03741a316bc831af26 /build.sh | |
parent | bc5ff6e1b63c336b302907dd590c332953051891 (diff) |
Build command for assets, use godep for tests etc
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -18,12 +18,12 @@ build() { ${godep} go build -ldflags "-w -X main.Version $version" ./cmd/stcli } -prepare() { - go run cmd/assets/assets.go gui > auto/gui.files.go +assets() { + godep go run cmd/assets/assets.go gui > auto/gui.files.go } test() { - go test -cpu=1,2,4 ./... + godep go test -cpu=1,2,4 ./... } sign() { @@ -75,8 +75,8 @@ case "$1" in tar) rm -f *.tar.gz *.zip - prepare test || exit 1 + assets build eval $(go env) @@ -87,8 +87,8 @@ case "$1" in all) rm -f *.tar.gz *.zip - prepare test || exit 1 + assets for os in darwin-amd64 linux-386 linux-amd64 freebsd-amd64 windows-amd64 ; do export GOOS=${os%-*} @@ -134,6 +134,10 @@ case "$1" in deps ;; + assets) + assets + ;; + *) echo "Unknown build parameter $1" ;; |