From e268f46d76e26ded8fb4f75913d5123d8ce4d72e Mon Sep 17 00:00:00 2001 From: William Cheng Date: Tue, 29 Mar 2022 13:43:38 +0800 Subject: [PATCH] Test PHP client in Travis CI (#11996) * test php in circleci node 2 * restore image * install php 8.1.4 * install plugin * install libonig-dev * install libzip-dev * test php in travis * rehash --- .travis.yml | 9 ++++++++- CI/circle_parallel.sh | 3 +++ pom.xml | 3 +-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 92ac1baaeae..1c01de229c1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,6 +29,7 @@ cache: - $HOME/.rvm/gems/ruby-2.4.1 - $HOME/website/node_modules/ - $HOME/.cache/deno + - $HOME/.phpenv/versions/8.1.4 services: - docker @@ -88,8 +89,14 @@ before_install: #- sudo apt-get update #- sudo apt-get install dart # switch to php7 + - sudo apt-get install libonig-dev libzip-dev + - git clone https://github.com/php-build/php-build $(phpenv root)/plugins/php-build + - git clone https://github.com/ngyuki/phpenv-composer.git $(phpenv root)/plugins/phpenv-composer + - phpenv install 8.1.4 + - phpenv rehash - phpenv versions - - phpenv global 7.2.15 + #- phpenv global 7.2.15 + - phpenv global 8.1.4 - php -v # comment out below as installation failed in travis # Add rebar3 build tool and recent Erlang/OTP for Erlang petstore server tests. diff --git a/CI/circle_parallel.sh b/CI/circle_parallel.sh index 01960b8f3e4..3678e2eb0cc 100755 --- a/CI/circle_parallel.sh +++ b/CI/circle_parallel.sh @@ -26,6 +26,9 @@ if [ "$NODE_INDEX" = "1" ]; then elif [ "$NODE_INDEX" = "2" ]; then echo "Running node $NODE_INDEX to test Go" + + php -v + # install haskell #curl -sSLk https://get.haskellstack.org/ | sh #stack upgrade diff --git a/pom.xml b/pom.xml index 63c0278abe3..c46e4824ccc 100644 --- a/pom.xml +++ b/pom.xml @@ -1113,6 +1113,7 @@ + samples/client/petstore/php/OpenAPIClient-php @@ -1137,8 +1138,6 @@ samples/client/petstore/rust samples/client/petstore/rust/reqwest/petstore samples/client/petstore/rust/reqwest/petstore-async - samples/client/petstore/python-legacy samples/client/petstore/python-asyncio