Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: update to go 1.15, update targets #44

Merged
merged 1 commit into from
Jan 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: go

go:
- "1.12"
- "1.15"

install:
- go get github.com/mattn/goveralls
Expand All @@ -16,14 +16,13 @@ before_deploy:
- go get github.com/mitchellh/gox
- go get github.com/tcnksm/ghr
- # make an dist/OS_ARCH.tar.gz for each platform, and put the binary in the top level
- gox -ldflags="-X \"github.com/bengadbois/pewpew/cmd.buildTime=$(date)\" -X \"github.com/bengadbois/pewpew/cmd.version=$TRAVIS_TAG\"" -output "dist/{{.OS}}_{{.Arch}}/{{.Dir}}/{{.Dir}}"
- gox -ldflags="-X \"github.com/bengadbois/pewpew/cmd.buildTime=$(date)\" -X \"github.com/bengadbois/pewpew/cmd.version=$TRAVIS_TAG\"" -osarch "darwin/amd64 freebsd/386 freebsd/amd64 freebsd/arm linux/386 linux/amd64 linux/arm netbsd/386 netbsd/amd64 netbsd/arm openbsd/386 openbsd/amd64 windows/386 windows/amd64" -output "dist/{{.OS}}_{{.Arch}}/{{.Dir}}/{{.Dir}}"
- for i in $(find dist -mindepth 1 -maxdepth 1 -type d); do tar -czf "$i".tar.gz -C "$i" "."; done

deploy:
provider: releases
api_key: $GITHUB_TOKEN
file:
- dist/darwin_386.tar.gz
- dist/darwin_amd64.tar.gz
- dist/freebsd_386.tar.gz
- dist/freebsd_amd64.tar.gz
Expand All @@ -41,4 +40,4 @@ deploy:
skip_cleanup: true
on:
tags: true
go: "1.12"
go: "1.15"