Skip to content

Commit

Permalink
Test erlang client, server petstore (#235)
Browse files Browse the repository at this point in the history
* test erlang client, server petstore

* rename tests, replace tab

* install rebar3 in shippable ci
  • Loading branch information
wing328 committed Apr 26, 2018
1 parent 44aaccb commit 049eef9
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 2 deletions.
3 changes: 3 additions & 0 deletions pom.xml.shippable
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
46 changes: 46 additions & 0 deletions samples/client/petstore/erlang-client/pom.xml
Original file line number Diff line number Diff line change
@@ -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>
4 changes: 2 additions & 2 deletions samples/server/petstore/erlang-server/pom.xml
Original file line number Diff line number Diff line change
@@ -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>
Expand All @@ -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>
Expand Down
4 changes: 4 additions & 0 deletions shippable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 049eef9

Please sign in to comment.