forked from loafle/openapi-generator-original
Run Qt5 client sample test (#3415)
This commit is contained in:
parent
b28ef78145
commit
1152af4d02
@ -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).
|
# - 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
|
# - . ~/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"
|
#- 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
|
# show host table to confirm petstore.swagger.io is mapped to localhost
|
||||||
- cat /etc/hosts
|
- cat /etc/hosts
|
||||||
|
1
pom.xml
1
pom.xml
@ -1024,6 +1024,7 @@
|
|||||||
<modules>
|
<modules>
|
||||||
<!-- clients -->
|
<!-- clients -->
|
||||||
<module>samples/client/petstore/c</module>
|
<module>samples/client/petstore/c</module>
|
||||||
|
<module>samples/client/petstore/cpp-qt5</module>
|
||||||
<!--<module>samples/client/petstore/dart-jaguar/openapi</module>
|
<!--<module>samples/client/petstore/dart-jaguar/openapi</module>
|
||||||
<module>samples/client/petstore/dart-jaguar/flutter_petstore/openapi</module>-->
|
<module>samples/client/petstore/dart-jaguar/flutter_petstore/openapi</module>-->
|
||||||
<!--<module>samples/client/petstore/dart2/petstore</module>-->
|
<!--<module>samples/client/petstore/dart2/petstore</module>-->
|
||||||
|
1
samples/client/petstore/cpp-qt5/.gitignore
vendored
Normal file
1
samples/client/petstore/cpp-qt5/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
build
|
12
samples/client/petstore/cpp-qt5/build-and-test.bash
Executable file
12
samples/client/petstore/cpp-qt5/build-and-test.bash
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
# project
|
||||||
|
qmake ../PetStore/PetStore.pro
|
||||||
|
|
||||||
|
make
|
||||||
|
|
||||||
|
./PetStore
|
43
samples/client/petstore/cpp-qt5/pom.xml
Normal file
43
samples/client/petstore/cpp-qt5/pom.xml
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>org.openapitools</groupId>
|
||||||
|
<artifactId>CppQt5PetstoreClientTests</artifactId>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
<name>Qt5 OpenAPI Petstore Client</name>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-dependencies</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>exec-maven-plugin</artifactId>
|
||||||
|
<version>1.2.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>pet-test</id>
|
||||||
|
<phase>integration-test</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>exec</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<executable>./build-and-test.bash</executable>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
Loading…
x
Reference in New Issue
Block a user