From e6161cc044ae49d3dceece5cf3b6a24049e1b17e Mon Sep 17 00:00:00 2001 From: William Cheng Date: Mon, 22 Jan 2024 14:30:53 +0800 Subject: [PATCH] Test perl petstore client in CircleCI (#17669) * test perl client in circleci * cpanm install * install * add bash * bin bash * update * undo pom.xml change --- CI/circle_parallel.sh | 3 +++ samples/client/petstore/perl/test.bash | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 samples/client/petstore/perl/test.bash diff --git a/CI/circle_parallel.sh b/CI/circle_parallel.sh index 8ee9dbeb2f5..a0b4b7f48c0 100755 --- a/CI/circle_parallel.sh +++ b/CI/circle_parallel.sh @@ -13,6 +13,9 @@ if [ "$NODE_INDEX" = "1" ]; then echo "Running node $NODE_INDEX ..." java -version + sudo apt-get -y install cpanminus + + (cd samples/client/petstore/perl && /bin/bash ./test.bash) (cd samples/client/petstore/ruby && mvn integration-test) (cd samples/client/petstore/ruby-faraday && mvn integration-test) (cd samples/client/petstore/ruby-httpx && mvn integration-test) diff --git a/samples/client/petstore/perl/test.bash b/samples/client/petstore/perl/test.bash new file mode 100644 index 00000000000..455ff0a77b0 --- /dev/null +++ b/samples/client/petstore/perl/test.bash @@ -0,0 +1,8 @@ +#!/bin/bash + +set -e + +cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) +cpanm --installdeps . + +perl tests/01_pet_api.t