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:
William Cheng 2018-04-26 18:12:00 +08:00 committed by GitHub
parent 44aaccb108
commit 049eef9c53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 55 additions and 2 deletions

View File

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

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

View File

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

View File

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