diff --git a/.travis.yml b/.travis.yml index f47f448b8749..b4bd3d852f76 100644 --- a/.travis.yml +++ b/.travis.yml @@ -94,6 +94,12 @@ before_install: # - Rely on `kerl` for [pre-compiled versions available](https://docs.travis-ci.com/user/languages/erlang#Choosing-OTP-releases-to-test-against). Rely on installation path chosen by [`travis-erlang-builder`](https://github.com/travis-ci/travis-erlang-builder/blob/e6d016b1a91ca7ecac5a5a46395bde917ea13d36/bin/compile#L18). # - . ~/otp/18.2.1/activate && erl -version #- curl -f -L -o ./rebar3 https://s3.amazonaws.com/rebar3/rebar3 && chmod +x ./rebar3 && ./rebar3 version && export PATH="${TRAVIS_BUILD_DIR}:$PATH" + # install Qt 5.10 + - sudo add-apt-repository --yes ppa:beineri/opt-qt-5.10.1-trusty + - sudo apt-get update -qq + - sudo apt-get install qt510-meta-minimal + - source /opt/qt510/bin/qt510-env.sh + - qmake -v # show host table to confirm petstore.swagger.io is mapped to localhost - cat /etc/hosts diff --git a/pom.xml b/pom.xml index 0f999b90f0e7..5588d1bb90e6 100644 --- a/pom.xml +++ b/pom.xml @@ -1024,6 +1024,7 @@ samples/client/petstore/c + samples/client/petstore/cpp-qt5 diff --git a/samples/client/petstore/cpp-qt5/.gitignore b/samples/client/petstore/cpp-qt5/.gitignore new file mode 100644 index 000000000000..378eac25d311 --- /dev/null +++ b/samples/client/petstore/cpp-qt5/.gitignore @@ -0,0 +1 @@ +build diff --git a/samples/client/petstore/cpp-qt5/build-and-test.bash b/samples/client/petstore/cpp-qt5/build-and-test.bash new file mode 100755 index 000000000000..58f703433dd6 --- /dev/null +++ b/samples/client/petstore/cpp-qt5/build-and-test.bash @@ -0,0 +1,12 @@ +#!/bin/bash + +set -e + +mkdir build +cd build +# project +qmake ../PetStore/PetStore.pro + +make + +./PetStore diff --git a/samples/client/petstore/cpp-qt5/pom.xml b/samples/client/petstore/cpp-qt5/pom.xml new file mode 100644 index 000000000000..70cf260fde76 --- /dev/null +++ b/samples/client/petstore/cpp-qt5/pom.xml @@ -0,0 +1,43 @@ + + 4.0.0 + org.openapitools + CppQt5PetstoreClientTests + pom + 1.0-SNAPSHOT + Qt5 OpenAPI Petstore Client + + + + maven-dependency-plugin + + + package + + copy-dependencies + + + ${project.build.directory} + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.2.1 + + + pet-test + integration-test + + exec + + + ./build-and-test.bash + + + + + + +