From c65686784bfd53564b446f506d202fb633b40573 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Gill=C3=A9?= Date: Fri, 19 Jul 2019 23:22:09 +0200 Subject: [PATCH] Turn Linux build into macOS build on Travis CI For #27 --- .travis.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index dc9b320..bdff62f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,14 @@ git: depth: 1 -language: go +os: osx -go: - - "1.12" +addons: + homebrew: + packages: + - go@1.12 # Currently the default Go version on the macOS build server is 1.10 + - upx + update: true env: - GO111MODULE=on @@ -12,7 +16,6 @@ env: 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=$(