mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 12:40:53 +00:00
Test erlang client, server petstore (#235)
* test erlang client, server petstore * rename tests, replace tab * install rebar3 in shippable ci
This commit is contained in:
parent
44aaccb108
commit
049eef9c53
@ -862,6 +862,9 @@
|
||||
<!-- clients -->
|
||||
<module>samples/client/petstore/elixir</module>
|
||||
<module>samples/client/petstore/haskell-http-client</module>
|
||||
<module>samples/client/petstore/erlang-client</module>
|
||||
<!-- servers -->
|
||||
<module>samples/server/petstore/erlang-server</module>
|
||||
</modules>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
46
samples/client/petstore/erlang-client/pom.xml
Normal file
46
samples/client/petstore/erlang-client/pom.xml
Normal file
@ -0,0 +1,46 @@
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.openapitools</groupId>
|
||||
<artifactId>ErlangClientTests</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<name>Erlang 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.6.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>compile-test</id>
|
||||
<phase>integration-test</phase>
|
||||
<goals>
|
||||
<goal>exec</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<executable>rebar3</executable>
|
||||
<arguments>
|
||||
<argument>compile</argument>
|
||||
</arguments>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
@ -1,6 +1,6 @@
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>io.swagger</groupId>
|
||||
<groupId>org.openapitools</groupId>
|
||||
<artifactId>ErlangServerTests</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
@ -27,7 +27,7 @@
|
||||
<version>1.6.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>Erlang Test</id>
|
||||
<id>compile-test</id>
|
||||
<phase>integration-test</phase>
|
||||
<goals>
|
||||
<goal>exec</goal>
|
||||
|
@ -18,6 +18,10 @@ build:
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install esl-erlang
|
||||
- sudo apt-get install elixir
|
||||
# install rebar3
|
||||
- wget https://s3.amazonaws.com/rebar3/rebar3 && chmod +x rebar3 && cp rebar3 /usr/bin
|
||||
# show version
|
||||
- rebar3 -v
|
||||
- elixir --version
|
||||
- mix --version
|
||||
# test samples defined in pom.xml
|
||||
|
Loading…
x
Reference in New Issue
Block a user