From ec7b5c129c7fdcde0c6c7b2038a8a37fe42d80ef Mon Sep 17 00:00:00 2001 From: Martin Delille Date: Mon, 22 Jul 2019 11:38:47 +0200 Subject: [PATCH] Run Qt5 client sample test --- .travis.yml | 6 +++ pom.xml | 1 + samples/client/petstore/cpp-qt5/.gitignore | 1 + .../petstore/cpp-qt5/build-and-test.bash | 12 ++++++ samples/client/petstore/cpp-qt5/pom.xml | 43 +++++++++++++++++++ 5 files changed, 63 insertions(+) create mode 100644 samples/client/petstore/cpp-qt5/.gitignore create mode 100755 samples/client/petstore/cpp-qt5/build-and-test.bash create mode 100644 samples/client/petstore/cpp-qt5/pom.xml 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 + + + + + + +