Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Commit

Permalink
Multi-OS: Provide binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Mounce committed May 10, 2020
1 parent 06495af commit 39f240e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
14 changes: 12 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,18 @@ go:
- 1.13.x

os:
- linux
- osx
- linux
- windows

dist: trusty

services:
- docker

before_install:
- if [ "${TRAVIS_OS_NAME}" == "windows" ]; then choco install make; fi

install:
- go get -u golang.org/x/lint/golint
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
Expand All @@ -25,7 +30,8 @@ before_script:
- ./cc-test-reporter before-build

script:
- make all
# darwin & windows do not support integration-testing approach via docker that linux does, so skip `test-int-*`
- if [[ "${TRAVIS_OS_NAME}" == "windows" || "${TRAVIS_OS_NAME}" == "osx" ]]; then make test-short-all; else make all; fi

after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT -d
Expand All @@ -35,12 +41,16 @@ deploy:
token:
secure: hEHCC4EN7iHz7pIWKRn2qw22NTqUxnuBp59wfAlLBtV26j5rHMzSu8mlxkJInusDUGLJiNLrZPRWN0mzOdIXalbUeLhlX7EflJgEj6Q0MchUR69LzCAp0KMIFL1Sfq0v81VgujRLUUy5utxDL8Er4tZknn2PpXAMzpO+ozjNRDhhSEM4iMXfY3bcOIMnx6XRgCjFCb036wlBgOfdgv5fwm2PP638DTKar4W6ZZbqCQByhJ5RyL3BMDPTT0moA/tYbG+FA6p6Rme1OcBkMnpsiJZoB3u8gxsNiEJ43/C2RcULW/18qqp2UVD5FipSDYP7GQ5ugKCbgpWXb0Ctl8o4hv1UsNl0XoyJhAt0PRp6vqnyy6LWB2FzX30Xj/vGIhO/IfiJvspHxpatTk7Esjr46K4u9ao/x63LX6F6yI1ZTfbzt2MhRYRjwh4ORNfqhysuzXChftX1S9hj6s6gO0/zqoOsRK/PK8DProbUn4bxrGOBzi16P0GEk4agWWUm74Pis9qCThXNW8MXEV936KvE1wb1RxTACYvFBtO2IM5eQ26t2Y7mGJd7FJup9LR4oUtUTSbYo5P2Sal6xntBKH5P4nwEtM+TtHoeSCKQ3X5i1VSdvAH7soEAly6rP5d5wwPhqqx9mgUPYO/3ulvxLJOYHamrbj6nlHDXnCEoj1ZMxX4=
file:
- release/goss-darwin-amd64
- release/goss-darwin-amd64.sha256
- release/goss-linux-amd64
- release/goss-linux-amd64.sha256
- release/goss-linux-386
- release/goss-linux-386.sha256
- release/goss-linux-arm
- release/goss-linux-arm.sha256
- release/goss-windows-amd64
- release/goss-windows-amd64.sha256
- extras/dgoss/dgoss
- extras/dgoss/dgoss.sha256
skip_cleanup: true
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ GO111MODULE=on

.PHONY: all build install test release bench fmt lint vet test-int-all gen centos7 wheezy precise alpine3 arch test-int32 centos7-32 wheezy-32 precise-32 alpine3-32 arch-32

all: test-all dgoss-sha256
all: test-short-all test-int-all dgoss-sha256

test-all: fmt lint vet test test-int-all
test-short-all: fmt lint vet test

install: release/goss-linux-amd64
$(info INFO: Starting build $@)
Expand Down Expand Up @@ -59,7 +59,7 @@ release:
$(MAKE) clean
$(MAKE) build

build: release/goss-linux-386 release/goss-linux-amd64 release/goss-linux-arm
build: release/goss-darwin-amd64 release/goss-linux-386 release/goss-linux-amd64 release/goss-linux-arm release/goss-windows-amd64

gen:
$(info INFO: Starting build $@)
Expand Down

0 comments on commit 39f240e

Please sign in to comment.