Skip to content

Commit 5de7f09

Browse files
authored
Gradle sample on travis (#3114)
* Explicitly ignore .bak in gradle samples directory * Add gradle wrapper to local-spec sample, make .java-version (jenv local) be less machine specific * Include gradle plugin samples in travis build
1 parent cd85210 commit 5de7f09

7 files changed

Lines changed: 266 additions & 1 deletion

File tree

.java-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
oracle64-1.8.0.152
1+
1.8

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ script:
134134
# test maven plugin
135135
- mvn clean compile -f modules/openapi-generator-maven-plugin/examples/java-client.xml
136136
- mvn clean compile -f modules/openapi-generator-maven-plugin/examples/multi-module/pom.xml
137+
# test gradle plugin
138+
- (cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildGoSdk)
139+
- (cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew openApiGenerate)
137140
after_success:
138141
# push to maven repo
139142
- if [ $SONATYPE_USERNAME ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.bak/
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

modules/openapi-generator-gradle-plugin/samples/local-spec/gradlew

Lines changed: 172 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/openapi-generator-gradle-plugin/samples/local-spec/gradlew.bat

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)