parent
2839f674e7
commit
96d0f82bec
Binary file not shown.
18
.travis.yml
18
.travis.yml
|
|
@ -10,11 +10,6 @@ go:
|
||||||
- 1.12.x
|
- 1.12.x
|
||||||
before_install:
|
before_install:
|
||||||
- mkdir -p $GOPATH/bin
|
- mkdir -p $GOPATH/bin
|
||||||
# This deploy key 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
|
# Download the `dep` binary to bin folder in $GOPATH
|
||||||
- curl -sLo $GOPATH/bin/dep https://github.com/golang/dep/releases/download/v0.5.3/dep-darwin-amd64
|
- curl -sLo $GOPATH/bin/dep https://github.com/golang/dep/releases/download/v0.5.3/dep-darwin-amd64
|
||||||
- chmod +x $GOPATH/bin/dep
|
- chmod +x $GOPATH/bin/dep
|
||||||
|
|
@ -25,6 +20,13 @@ install:
|
||||||
- rvm $brew_ruby do gem install --no-document fpm
|
- rvm $brew_ruby do gem install --no-document fpm
|
||||||
script:
|
script:
|
||||||
- rvm $brew_ruby do make release
|
- rvm $brew_ruby do make release
|
||||||
|
# get deploy key for golift/homebrew-repo.
|
||||||
|
after_success:
|
||||||
|
- |
|
||||||
|
openssl aes-256-cbc -K $encrypted_9f3147001275_key -iv $encrypted_9f3147001275_iv -in github_deploy_key.enc -out github_deploy_key -d
|
||||||
|
$(npm bin)/set-up-ssh --key "$encrypted_9f3147001275_key" \
|
||||||
|
--iv "$encrypted_9f3147001275_iv" \
|
||||||
|
--path-encrypted-key ".travis/github_deploy_key.enc"
|
||||||
deploy:
|
deploy:
|
||||||
- provider: releases
|
- provider: releases
|
||||||
api_key:
|
api_key:
|
||||||
|
|
@ -39,5 +41,9 @@ deploy:
|
||||||
- provider: script
|
- provider: script
|
||||||
script: scripts/formula-deploy.sh
|
script: scripts/formula-deploy.sh
|
||||||
on:
|
on:
|
||||||
|
all_branches: true
|
||||||
repo: davidnewhall/unifi-poller
|
repo: davidnewhall/unifi-poller
|
||||||
secure: "0yBdTabuF8LM8nQ8hSF1wjigQawal9N/v2NlR62oioMvzqWOy0zKo8R+mcfHK+pCByx0Ki/VWslms/WBKQnQvolGKY32UOg2cJvoVMoOemcwaezLK0kGZt8+O83ZQLr0CsiuzLQxJoqjiYf8ca6N2tjDFIowLPzSNPQR32mAP8cTe5fkxKyFAXgmA41BkzWMTx/V9R6udcX+Oofi8tpIZv1fyqSMNVlItHLxLFeP7F/r6OSM/Y87abAOt1U/ugPDufCL1MpmjRNhkL+NnHajSI30RsHFMv0c96hV3Va2g1VXrEVTB3F/0HhwBd9vwWwmiAGDMP/Nh7WfkQjHgHYCWVlbYgEdZj3rxeP9p14WEki3VavW2tZENjXoHpJswcT3UhB2m49p+pyV9NbzxZKeJDa2oniYBA9RfCrIURUIDI9Mk7vb+SVdcwx8JioiOebo568eRNHFI66KmQFrCGs+ZSuGFMk2ftaqhHSSctaD14EXzIurmWernw8xwmJAyiyBx6bKUIF969lBPlLVVCbl86ekNjm5xPxCaUM+Evugzo6nGsGckEUor85Ej54Q8qcxO/3m12F6gbHaEUUVK1splk+3dvDrSTZ6zJ+opxKkFph1MLjqQOIwqGU6DMMKy0JxMusjRg8n135LQQ/V05+Mzci4AF+kctidKfE42JDt5vA="
|
env:
|
||||||
|
global:
|
||||||
|
- GH_USER_NAME=unifi-auto-releaser
|
||||||
|
- GH_USER_EMAIL=unifi@auto.releaser
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -6,14 +6,12 @@ make unifi-poller.rb
|
||||||
VERSION=$(grep -E '^\s*version\s*"' unifi-poller.rb | cut -d\" -f 2)
|
VERSION=$(grep -E '^\s*version\s*"' unifi-poller.rb | cut -d\" -f 2)
|
||||||
|
|
||||||
rm -rf homebrew-repo
|
rm -rf homebrew-repo
|
||||||
git clone https://$GITHUB_API_KEY@github.com/golift/homebrew-repo.git
|
git clone git@github.com:golift/homebrew-repo.git
|
||||||
|
|
||||||
cp unifi-poller.rb homebrew-repo/Formula
|
cp unifi-poller.rb homebrew-repo/Formula
|
||||||
pushd homebrew-repo
|
pushd homebrew-repo
|
||||||
echo "Showing diff:"
|
echo "Showing diff:"
|
||||||
git diff
|
git diff
|
||||||
git config user.name "unifi-poller-bot"
|
|
||||||
git config user.email "unifi@poller.bot"
|
|
||||||
git commit -m "Update unifi-poller on Release: v${VERSION}" Formula/unifi-poller.rb
|
git commit -m "Update unifi-poller on Release: v${VERSION}" Formula/unifi-poller.rb
|
||||||
git push
|
git push
|
||||||
popd
|
popd
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue