This is an automated email from the ASF dual-hosted git repository.
aw pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/yetus-homebrew.git
The following commit(s) were added to refs/heads/main by this push:
new c9ca2f4 YETUS-1096. homebrew formula needs some updates (#5)
c9ca2f4 is described below
commit c9ca2f49b637aef2d90ae8576e7269b6ae9ff7db
Author: Allen Wittenauer <[email protected]>
AuthorDate: Mon Oct 25 07:04:39 2021 -0700
YETUS-1096. homebrew formula needs some updates (#5)
---
.github/workflows/testing.yaml | 30 ++++++++++++++++++++++++++++++
Formula/yetus.rb | 18 +++++++++++++-----
update-homebrew.sh | 2 --
3 files changed, 43 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/testing.yaml b/.github/workflows/testing.yaml
new file mode 100644
index 0000000..487e130
--- /dev/null
+++ b/.github/workflows/testing.yaml
@@ -0,0 +1,30 @@
+# This workflow file generates binaries for both Windows
+# and OS X. However, https://github.com/actions/upload-artifact/issues/38
+# that basically says that it won't ever preserve permissions.
+# That means an archive in an archive since we need to preserve them
+# on OS X. Still... better than doing this all by hand.
+
+---
+
+name: homebrew-test
+
+on: [push] # yamllint disable-line rule:truthy
+
+jobs:
+ testing-mac-10-15:
+ runs-on: macos-10.15
+ steps:
+ # This step is necessary because one of our dependencies
+ # conflicts with the Github image .
+ - name: install homebrew go
+ shell: bash
+ run: |
+ brew install go || true
+ brew link --overwrite go || true
+ - name: checkout
+ uses: actions/checkout@v2
+ - name: tests
+ shell: bash
+ run: |
+ brew tap apache/yetus file://$(pwd)
+ brew install yetus --with-all
diff --git a/Formula/yetus.rb b/Formula/yetus.rb
index 6db0e10..b160b4d 100644
--- a/Formula/yetus.rb
+++ b/Formula/yetus.rb
@@ -16,32 +16,40 @@
#
# Homebrew formula to install Apache Yetus
class Yetus < Formula
+ license "Apache-2.0"
desc "Enable contribution and release processes for software projects"
homepage "https://yetus.apache.org/"
- # NOTE: URL brings up chooser for browsers
- url
"https://www.apache.org/dyn/closer.lua?path=yetus/0.13.0/apache-yetus-0.13.0-bin.tar.gz"
- mirror
"https://archive.apache.org/dist/yetus/0.13.0/apache-yetus-0.13.0-bin.tar.gz"
+ url "https://dlcdn.apache.org/yetus/0.13.0/apache-yetus-0.13.0-bin.tar.gz"
sha256 "a1022da63540ff9f722c9a4ab7b1dda5fb5a3d5faa2c3426d18582aed1f08a1e"
option "with-all", "Build with all dependencies. Note that some dependencies
such as "\
- "Perl::Critic, Pylint, RuboCop and ruby-lint still need to be installed
manually."
+ "Go, Perl::Critic and checkmake still need to be installed manually."
dependencies = [
# programming languages
- :java,
+ "go",
+ "openjdk@8",
"scala",
# build tools
"ant",
"autoconf",
"automake",
+ "bash",
"cmake",
"libtool",
+ "git",
"gradle",
"maven",
# test tools
+ "codespell",
+ "detect-secrets",
+ "golangci-lint",
"hadolint",
+ "markdownlint-cli",
+ "pylint",
+ "revive",
"shellcheck",
"spotbugs",
"yamllint"
diff --git a/update-homebrew.sh b/update-homebrew.sh
index 32cb631..8f395ef 100755
--- a/update-homebrew.sh
+++ b/update-homebrew.sh
@@ -41,8 +41,6 @@ sed -E -i
"s,[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+,${VERSION},g" Formula/yetu
URL=$(awk '/url/ {print $NF}' Formula/yetus.rb)
URL=${URL//\"/}
-MIRRORURL=$(awk '/mirror/ {print $NF}' Formula/yetus.rb)
-MIRRORURL=${MIRRORURL//\"/}
curl --location --fail --output "/tmp/yetus-binary.tgz" "${MIRRORURL}"