Skip to content

Commit

Permalink
AVRO-3222: Fix ruby interop scripts (apache#1353)
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanSkraba authored Oct 6, 2021
1 parent 0789cb7 commit 8f0b8d6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ do
#(cd lang/c++; make interop-data-generate)
(cd lang/csharp; ./build.sh interop-data-generate)
(cd lang/js; ./build.sh interop-data-generate)
(cd lang/ruby; rake generate_interop)
(cd lang/ruby; ./build.sh interop-data-generate)
(cd lang/php; ./build.sh interop-data-generate)
(cd lang/perl; ./build.sh interop-data-generate)

Expand All @@ -119,7 +119,7 @@ do
#(cd lang/c++; make interop-data-test)
(cd lang/csharp; ./build.sh interop-data-test)
(cd lang/js; ./build.sh interop-data-test)
(cd lang/ruby; rake interop)
(cd lang/ruby; ./build.sh interop-data-test)
(cd lang/php; ./build.sh test-interop)
(cd lang/perl; ./build.sh interop-data-test)

Expand Down
10 changes: 9 additions & 1 deletion lang/ruby/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ do
bundle exec rubocop
;;

interop-data-generate)
bundle exec rake generate_interop
;;

interop-data-test)
bundle exec rake interop
;;

test)
bundle exec rake test
;;
Expand All @@ -57,7 +65,7 @@ do
;;

*)
echo "Usage: $0 {lint|test|dist|clean}"
echo "Usage: $0 {clean|dist|interop-data-generate|interop-data-test|lint|test}"
exit 1
esac
done
2 changes: 2 additions & 0 deletions share/test/interop/bin/test_rpc_interop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ cd "${0%/*}/../../../.."

VERSION=$(<share/VERSION.txt)

export GEM_HOME="$PWD/lang/ruby/.gem/"

java_tool() {
java -jar "lang/java/tools/target/avro-tools-$VERSION.jar" "$@"
}
Expand Down

0 comments on commit 8f0b8d6

Please sign in to comment.