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
This commit is contained in:
William Cheng 2022-03-29 13:43:38 +08:00 committed by GitHub
parent 9ce3d2bc3e
commit e268f46d76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 3 deletions

View File

@ -29,6 +29,7 @@ cache:
- $HOME/.rvm/gems/ruby-2.4.1 - $HOME/.rvm/gems/ruby-2.4.1
- $HOME/website/node_modules/ - $HOME/website/node_modules/
- $HOME/.cache/deno - $HOME/.cache/deno
- $HOME/.phpenv/versions/8.1.4
services: services:
- docker - docker
@ -88,8 +89,14 @@ before_install:
#- sudo apt-get update #- sudo apt-get update
#- sudo apt-get install dart #- sudo apt-get install dart
# switch to php7 # 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 versions
- phpenv global 7.2.15 #- phpenv global 7.2.15
- phpenv global 8.1.4
- php -v - php -v
# comment out below as installation failed in travis # comment out below as installation failed in travis
# Add rebar3 build tool and recent Erlang/OTP for Erlang petstore server tests. # Add rebar3 build tool and recent Erlang/OTP for Erlang petstore server tests.

View File

@ -26,6 +26,9 @@ if [ "$NODE_INDEX" = "1" ]; then
elif [ "$NODE_INDEX" = "2" ]; then elif [ "$NODE_INDEX" = "2" ]; then
echo "Running node $NODE_INDEX to test Go" echo "Running node $NODE_INDEX to test Go"
php -v
# install haskell # install haskell
#curl -sSLk https://get.haskellstack.org/ | sh #curl -sSLk https://get.haskellstack.org/ | sh
#stack upgrade #stack upgrade

View File

@ -1113,6 +1113,7 @@
</property> </property>
</activation> </activation>
<modules> <modules>
<module>samples/client/petstore/php/OpenAPIClient-php</module>
<!-- TODO: move to github action or circleci <!-- TODO: move to github action or circleci
<module>samples/client/petstore/crystal</module>--> <module>samples/client/petstore/crystal</module>-->
<!-- servers --> <!-- servers -->
@ -1137,8 +1138,6 @@
<module>samples/client/petstore/rust</module> <module>samples/client/petstore/rust</module>
<module>samples/client/petstore/rust/reqwest/petstore</module> <module>samples/client/petstore/rust/reqwest/petstore</module>
<module>samples/client/petstore/rust/reqwest/petstore-async</module> <module>samples/client/petstore/rust/reqwest/petstore-async</module>
<!-- commented out due to php ^7.3 || ^8.0 not in travis
<module>samples/client/petstore/php/OpenAPIClient-php</module> -->
<!--<module>samples/client/petstore/javascript-apollo</module>--> <!--<module>samples/client/petstore/javascript-apollo</module>-->
<module>samples/client/petstore/python-legacy</module> <module>samples/client/petstore/python-legacy</module>
<module>samples/client/petstore/python-asyncio</module> <module>samples/client/petstore/python-asyncio</module>