-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turn Linux build into macOS build on Travis CI
For #27
- Loading branch information
1 parent
2756a16
commit c656867
Showing
1 changed file
with
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
git: | ||
depth: 1 | ||
|
||
language: go | ||
os: osx | ||
|
||
go: | ||
- "1.12" | ||
addons: | ||
homebrew: | ||
packages: | ||
- [email protected] # Currently the default Go version on the macOS build server is 1.10 | ||
- upx | ||
update: true | ||
|
||
env: | ||
- GO111MODULE=on | ||
|
||
before_install: | ||
- go version | ||
- go env | ||
- sudo apt-get install -y upx-ucl | ||
|
||
script: | ||
- go build -v | ||
|
@@ -21,6 +24,8 @@ script: | |
- ./serve -h | ||
- ./serve -v | ||
- ./serve -t | ||
- build/artifacts/serve_v*_Linux_x64 -h | ||
- build/artifacts/serve_v*_Linux_x64 -v | ||
- build/artifacts/serve_v*_Linux_x64 -t | ||
- VERSION=$(<VERSION) | ||
# Can't use "serve_v*_" for globbing on macOS by default | ||
- build/artifacts/serve_v${VERSION}_macOS_x64 -h | ||
- build/artifacts/serve_v${VERSION}_macOS_x64 -v | ||
- build/artifacts/serve_v${VERSION}_macOS_x64 -t |