mirror of
https://github.com/unpoller/unpoller.git
synced 2026-10-20 17:50:48 +02:00
more auto
This commit is contained in:
@@ -4,26 +4,18 @@
|
||||
# Requires SSH credentials in ssh-agent to work.
|
||||
# Run by Travis-CI when a new release is created on GitHub.
|
||||
|
||||
source ../.metadata.sh
|
||||
source .metadata.sh
|
||||
|
||||
if [ -z "$VERSION" ]; then
|
||||
VERSION=$TRAVIS_TAG
|
||||
fi
|
||||
VERSION=$(echo $VERSION|tr -d v)
|
||||
make ${BINARY}.rb
|
||||
|
||||
make ${BINARY}.rb VERSION=$VERSION
|
||||
|
||||
if [ -z "$VERSION" ]; then
|
||||
VERSION=$(grep -E '^\s+url\s+"' ${BINARY}.rb | cut -d/ -f7 | cut -d. -f1,2,3)
|
||||
fi
|
||||
|
||||
rm -rf homebrew-mugs
|
||||
git config --global user.email "${BINARY}@auto.releaser"
|
||||
git config --global user.name "${BINARY}-auto-releaser"
|
||||
|
||||
rm -rf homebrew-mugs
|
||||
git clone git@github.com:golift/homebrew-mugs.git
|
||||
|
||||
cp ${BINARY}.rb homebrew-mugs/Formula
|
||||
pushd homebrew-mugs
|
||||
git commit -m "Update ${BINARY} on Release: ${VERSION}-${ITERATION}" Formula/${BINARY}.rb
|
||||
git commit -m "Update ${BINARY} on Release: v${VERSION}-${ITERATION}" Formula/${BINARY}.rb
|
||||
git push
|
||||
popd
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
# Use it like this: (sudo is optional)
|
||||
# ===
|
||||
# curl https://raw.githubusercontent.com/davidnewhall/unifi-poller/master/scripts/install.sh | sudo bash
|
||||
# curl https://raw.githubusercontent.com/this/repo/master/scripts/install.sh | sudo bash
|
||||
# ===
|
||||
# If you're on redhat, this installs the latest rpm. If you're on Debian, it installs the latest deb package.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user