forked from loafle/openapi-generator-original
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:
parent
9ce3d2bc3e
commit
e268f46d76
@ -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.
|
||||
|
@ -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
|
||||
|
3
pom.xml
3
pom.xml
@ -1113,6 +1113,7 @@
|
||||
</property>
|
||||
</activation>
|
||||
<modules>
|
||||
<module>samples/client/petstore/php/OpenAPIClient-php</module>
|
||||
<!-- TODO: move to github action or circleci
|
||||
<module>samples/client/petstore/crystal</module>-->
|
||||
<!-- servers -->
|
||||
@ -1137,8 +1138,6 @@
|
||||
<module>samples/client/petstore/rust</module>
|
||||
<module>samples/client/petstore/rust/reqwest/petstore</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/python-legacy</module>
|
||||
<module>samples/client/petstore/python-asyncio</module>
|
||||
|
Loading…
x
Reference in New Issue
Block a user