diff --git a/integrations/inputunifi/.travis.yml b/integrations/inputunifi/.travis.yml index 025d8b57..4f905f14 100644 --- a/integrations/inputunifi/.travis.yml +++ b/integrations/inputunifi/.travis.yml @@ -1,33 +1,30 @@ language: go +# so we can build an osx package. +os: osx addons: - apt: + homebrew: packages: - - ruby-dev - rpm - - build-essential - - git - - libgnome-keyring-dev - - fakeroot + - gnu-tar go: - 1.12.x -env: -- PATH=${PATH}:/home/travis/.gem/ruby/2.4.0/bin before_install: +- mkdir -p $GOPATH/bin # This deploy is not used atm. - openssl aes-256-cbc -K $encrypted_9f3147001275_key -iv $encrypted_9f3147001275_iv -in .github_deploy_key.enc -out github_deploy_key -d - chmod 600 github_deploy_key - eval $(ssh-agent -s) - ssh-add github_deploy_key # Download the `dep` binary to bin folder in $GOPATH -- curl -L -s https://github.com/golang/dep/releases/download/v0.5.3/dep-linux-amd64 -o $GOPATH/bin/dep +- curl -sLo $GOPATH/bin/dep https://github.com/golang/dep/releases/download/v0.5.3/dep-linux-amd64 - chmod +x $GOPATH/bin/dep # download super-linter: golangci-lint -- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest +- curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest install: - dep ensure -- gem install --no-document ronn fpm +- rvm $brew_ruby do gem install --no-document ronn fpm script: -- make release +- rvm $brew_ruby do make release deploy: provider: releases api_key: diff --git a/integrations/inputunifi/Makefile b/integrations/inputunifi/Makefile index cb118357..a59ca9a3 100644 --- a/integrations/inputunifi/Makefile +++ b/integrations/inputunifi/Makefile @@ -5,12 +5,12 @@ VERSION=`git tag -l --merged | tail -n1` all: man unifi-poller # Prepare a release. Called in Travis CI. -release: clean test man linux macos rpm deb +release: clean test man linux macos rpm deb osxpkg mkdir -p build_assets gzip -9k unifi-poller.linux gzip -9k unifi-poller.macos mv unifi-poller.macos.gz unifi-poller.linux.gz build_assets/ - cp *.rpm *.deb build_assets/ + cp *.rpm *.deb *.pkg build_assets/ clean: rm -f `echo $(PACKAGE)|cut -d/ -f3`{.macos,.linux,.1,}{,.gz}