Run Qt5 client sample test (#3415)

This commit is contained in:
Martin Delille
2019-08-08 17:59:50 +02:00
committed by William Cheng
parent b28ef78145
commit 1152af4d02
5 changed files with 63 additions and 0 deletions

View File

@@ -0,0 +1 @@
build

View File

@@ -0,0 +1,12 @@
#!/bin/bash
set -e
mkdir build
cd build
# project
qmake ../PetStore/PetStore.pro
make
./PetStore

View 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>