Skip to content

Commit

Permalink
Install release_notes.md
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey committed Oct 25, 2023
1 parent 2e3617c commit 3f77d29
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions Formula/gz-ionic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,15 @@ class GzIonic < Formula
depends_on "pkg-config"
depends_on "sdformat15"

resource "PyYAML" do
url "https://files.pythonhosted.org/packages/64/c2/b80047c7ac2478f9501676c988a5411ed5572f35d1beff9cae07d321512c/PyYAML-5.3.1.tar.gz"
sha256 "b8eac752c5e14d3eca0e6dd9199cd627518cb5ec06add0de9d32baeee6fe645d"
end

def install
mkdir "build" do
system "cmake", "..", *std_cmake_args
system "make", "install"
end

venv = virtualenv_create(libexec, Formula["[email protected]"].opt_libexec/"bin/python")
%w[PyYAML vcstool].each do |pkg|
venv.pip_install pkg
end
end

test do
yaml_file = share/"gz/gz-ionic/gazebodistro/collection-ionic.yaml"
system libexec/"bin/vcs", "validate", "--input", yaml_file
assert_predicate share/"gz/gz-ionic/release_notes.md", :exist?
end
end

0 comments on commit 3f77d29

Please sign in to comment.