Skip to content

Commit

Permalink
changing release script
Browse files Browse the repository at this point in the history
* removed support for freebsd and linux/arm
* using tar for unix
  • Loading branch information
zabawaba99 committed Aug 6, 2015
1 parent a2e69c9 commit 548cc13
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ after_script:
fi
before_deploy:
- PLATFORMS=(darwin/386 darwin/amd64 freebsd/386 freebsd/amd64 freebsd/arm linux/386 linux/amd64 linux/arm windows/386 windows/amd64)
- PLATFORMS=(darwin/386 darwin/amd64 linux/386 linux/amd64 windows/386 windows/amd64)
- BINARY=snag
# compile all go os/archs
- |
Expand All @@ -81,26 +81,23 @@ before_deploy:
if ! eval $build_cmd; then
echo "Failed building snag for $PLATFORM" && return 1
fi
if ! zip -9 snag-${GOOS}-${GOARCH}.zip snag; then
echo "Failed to zip snag for $PLATFORM" && return 1
if [ "$GOOS" = "windows" ]; then
zip snag-${GOOS}-${GOARCH}.zip snag
else
tar cvzf snag-${GOOS}-${GOARCH}.tgz snag
fi
echo "snag-${GOOS}-${GOARCH}.zip"
done
deploy:
provider: releases
api_key: $GITHUB_AUTH_TOKEN
file:
- "snag-darwin-386.zip"
- "snag-darwin-amd64.zip"

- "snag-freebsd-386.zip"
- "snag-freebsd-arm.zip"
- "snag-freebsd-amd64.zip"
- "snag-darwin-386.tgz"
- "snag-darwin-amd64.tgz"

- "snag-linux-386.zip"
- "snag-linux-arm.zip"
- "snag-linux-amd64.zip"
- "snag-linux-386.tgz"
- "snag-linux-amd64.tgz"

- "snag-windows-386.zip"
- "snag-windows-amd64.zip"
Expand Down

0 comments on commit 548cc13

Please sign in to comment.