Skip to content

Commit

Permalink
[Go] update travis config to run Go Petstore tests (swagger-api#3465)
Browse files Browse the repository at this point in the history
* update pom to include go ci

* fix pom

* add gopath

* update GOPATH

* reorder pom client, server test sequence

* remove debug echo in travis
  • Loading branch information
wing328 authored Jul 27, 2016
1 parent 748eaa8 commit c23b473
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 16 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ before_install:
- cat /etc/hosts

install:
# Add Godeps dependencies to GOPATH and PATH
- export GOPATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace"
- export PATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace/bin:$PATH"

script:
- mvn verify -Psamples
Expand Down
37 changes: 26 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,18 @@
<module>samples/client/petstore/ruby</module>
</modules>
</profile>
<profile>
<id>go-client</id>
<activation>
<property>
<name>env</name>
<value>java</value>
</property>
</activation>
<modules>
<module>samples/client/petstore/go</module>
</modules>
</profile>
<profile>
<id>spring-mvc</id>
<activation>
Expand Down Expand Up @@ -603,33 +615,36 @@
<modules>
<!-- run ruby test first which has a random delay script to
avoid issues with running 2 CI jobs in parallel. -->
<!-- clients -->
<module>samples/client/petstore/ruby</module>
<module>samples/client/petstore/python</module>
<module>samples/client/petstore/typescript-fetch/tests/default</module>
<module>samples/client/petstore/typescript-fetch/builds/default</module>
<module>samples/client/petstore/typescript-fetch/builds/es6-target</module>
<module>samples/client/petstore/typescript-fetch/builds/with-npm-version</module>
<module>samples/client/petstore/typescript-angular</module>
<module>samples/client/petstore/typescript-node/npm</module>
<module>samples/client/petstore/android/volley</module>
<module>samples/client/petstore/clojure</module>
<module>samples/client/petstore/java/jersey1</module>
<module>samples/client/petstore/go</module>
<module>samples/client/petstore/java/feign</module>
<module>samples/client/petstore/java/jersey1</module>
<module>samples/client/petstore/java/jersey2</module>
<module>samples/client/petstore/java/okhttp-gson</module>
<module>samples/client/petstore/java/retrofit</module>
<module>samples/client/petstore/java/retrofit2</module>
<module>samples/client/petstore/java/retrofit2rx</module>
<module>samples/client/petstore/javascript</module>
<module>samples/client/petstore/python</module>
<module>samples/client/petstore/scala</module>
<module>samples/server/petstore/spring-mvc</module>
<module>samples/server/petstore/springboot</module>
<module>samples/client/petstore/spring-cloud</module>
<module>samples/client/petstore/typescript-fetch/builds/default</module>
<module>samples/client/petstore/typescript-fetch/builds/es6-target</module>
<module>samples/client/petstore/typescript-fetch/builds/with-npm-version</module>
<module>samples/client/petstore/typescript-fetch/tests/default</module>
<module>samples/client/petstore/typescript-angular</module>
<module>samples/client/petstore/typescript-node/npm</module>
<!-- servers -->
<module>samples/server/petstore/jaxrs/jersey1</module>
<module>samples/server/petstore/jaxrs/jersey2</module>
<module>samples/server/petstore/jaxrs-resteasy/default</module>
<module>samples/server/petstore/jaxrs-resteasy/joda</module>
<module>samples/server/petstore/scalatra</module>
<module>samples/server/petstore/spring-mvc</module>
<module>samples/client/petstore/spring-cloud</module>
<module>samples/server/petstore/springboot</module>
<!--module>samples/client/petstore/objc/SwaggerClientTests</module-->
<!--module>samples/client/petstore/swift/SwaggerClientTests</module-->
</modules>
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/go/go-petstore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This API client was generated by the [swagger-codegen](https://github.com/swagge

- API version: 1.0.0
- Package version: 1.0.0
- Build date: 2016-07-26T22:50:03.821+08:00
- Build date: 2016-07-27T14:47:08.029+08:00
- Build package: class io.swagger.codegen.languages.GoClientCodegen

## Installation
Expand Down
6 changes: 3 additions & 3 deletions samples/client/petstore/go/go-petstore/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</configuration>
</execution>
<execution>
<id>go-get-resty</id>
<id>go-get-sling</id>
<phase>pre-integration-test</phase>
<goals>
<goal>exec</goal>
Expand All @@ -50,7 +50,7 @@
<executable>go</executable>
<arguments>
<argument>get</argument>
<argument>github.com/go-resty/resty</argument>
<argument>github.com/dghubble/sling</argument>
</arguments>
</configuration>
</execution>
Expand All @@ -72,4 +72,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
2 changes: 1 addition & 1 deletion samples/client/petstore/go/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<artifactId>Goswagger</artifactId>
<packaging>pom</packaging>
<version>1.0.0</version>
<name>Goswagger</name>
<name>Go Petstore Client</name>
<build>
<plugins>
<plugin>
Expand Down

0 comments on commit c23b473

Please sign in to comment.