This repository has been archived by the owner on Jun 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use travis to build and deploy releases
- Loading branch information
Showing
3 changed files
with
118 additions
and
7 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
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,10 +1,18 @@ | ||
language: go | ||
|
||
go: | ||
- 1.5 | ||
- 1.6 | ||
- 1.7 | ||
- 1.8 | ||
|
||
- 1.5 | ||
- 1.6 | ||
- 1.7 | ||
- 1.8 | ||
notifications: | ||
email: false | ||
email: false | ||
before_deploy: "scripts/build.sh" | ||
deploy: | ||
provider: releases | ||
api_key: | ||
secure: SfwWQV3WZQAdu97TLOz3eXlEHvumH8sr/AmwPdvVG1JYVJ9pKoQjzOpj+2tFaWel7yuzkVN+fFwtlxJfvr+sTuocuDGhTdDsD6v8wncjPy46nOICYVrRDKN12UQajX9tTDso/0mg+AxBWHktu8JKKKFC09CIQE062kQLrC99Usq9fEtQN/w0sRa/yU5py9umvlaesYO2Sp3f6Bi2x1H5oYww5A+aa4Q4ReHb7wEDF2jo2B3jAU0C6gx+jzPR/B5JYMdncwwrC79kpe70OXZ513oL317aMmzYmnQiq9hnbUKeyrFnc1kKBkhlm8qSHXAwVVdt7f7ZZDxEm61arh2v5e0ruNHvZUHXxL+F63iMgTswD+fN/WzoCfodSk/f0NXQUvstrQGJc3TRDn9U21+mXfmeSyc+OoOZuK5TY4MdAoTEAlorVvb6nK8f1VLIwhtwFKt8mAOU9y2gFUrYO/UVwchvsmeCmw9T5RZmJiW86l3upRnSGj2ssCUBIeznbBeFEgTG0tdC16fBSgsU6e2ZntfAhS/Z/07FHFZ8C84wzLoz6S4mbSqW1omURiY+cTX7M5Ww8oCYdOQ3rLm91NSFR7iMj3QRGe+p0xtPmMLHVkwfg1kVyz/1Nj+Uc9ggL/RjleUQRuC12dl6BLL8HqraS0ksPgkzgNzg5C78fYkhP5o= | ||
file_glob: true | ||
file: build/* | ||
skip_cleanup: true | ||
on: | ||
tags: true |
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,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
PLATFORMS=( | ||
dragonfly-amd64 | ||
freebsd-amd64 freebsd-386 | ||
linux-amd64 linux-386 linux-arm linux-arm64 linux-ppc64 linux-ppc64le linux-mips linux-mipsle | ||
netbsd-amd64 netbsd-386 | ||
openbsd-amd64 openbsd-386 | ||
) | ||
|
||
mkdir -p build | ||
echo Building | ||
for plat in "${PLATFORMS[@]}"; do | ||
echo Building "$plat" | ||
|
||
export GOOS="${plat%-*}" | ||
export GOARCH="${plat#*-}" | ||
go build -o "build/timer_script-${plat}" main.go | ||
echo | ||
|
||
done |