Skip to content

Commit 9f1b938

Browse files
authored
[CI] Test maven plugin in Travis, move jobs from Shippable to Circle CI (#3087)
* test plugin in travis, move jobs to circle CI * Revert "[maven-plugin] fix strictSpec parameter (#3071)" This reverts commit 8c9a151. * Revert "Revert "[maven-plugin] fix strictSpec parameter (#3071)"" This reverts commit c3e5723. * test with jdk8
1 parent dcf3f42 commit 9f1b938

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ script:
131131
# WARN: Travis will timeout after 10 minutes of no stdout/stderr activity, which is problematic with mvn --quiet.
132132
- mvn --quiet --batch-mode --show-version clean install
133133
- mvn --quiet --batch-mode --show-version verify -Psamples
134+
# test maven plugin
135+
- mvn clean compile -f modules/openapi-generator-maven-plugin/examples/java-client.xml
136+
- mvn clean compile -f modules/openapi-generator-maven-plugin/examples/multi-module/pom.xml
134137
after_success:
135138
# push to maven repo
136139
- if [ $SONATYPE_USERNAME ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then

CI/circle_parallel.sh

+9
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ if [ "$NODE_INDEX" = "1" ]; then
1212
#cp CI/pom.xml.circleci pom.xml
1313
java -version
1414
mvn --quiet verify -Psamples.circleci
15+
16+
# generate all petstore samples (client, servers, doc)
17+
./bin/run-all-petstore
18+
# generate all petstore samples (openapi3)
19+
./bin/openapi3/run-all-petstore
20+
# generate test scripts
21+
./bin/tests/run-all-test
22+
# test all generators with fake petstore spec (2.0, 3.0)
23+
./bin/utils/test-fake-petstore-for-all.sh
1524
elif [ "$NODE_INDEX" = "2" ]; then
1625
# run ensure-up-to-date sample script on SNAPSHOT version only
1726
project_version=`mvn org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression=project.version -q -DforceStdout`

shippable.yml

+9-8
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@ build:
3838
- mix --version
3939
# test samples defined in pom.xml
4040
- mvn --quiet verify -P samples.shippable -Dmaven.javadoc.skip=true
41-
# generate all petstore samples (client, servers, doc)
42-
- ./bin/run-all-petstore
43-
# generate all petstore samples (openapi3)
44-
- ./bin/openapi3/run-all-petstore
45-
# generate test scripts
46-
- ./bin/tests/run-all-test
47-
# test all generators with fake petstore spec (2.0, 3.0)
48-
- ./bin/utils/test-fake-petstore-for-all.sh
41+
# below moved to CircleCI
42+
## generate all petstore samples (client, servers, doc)
43+
#- ./bin/run-all-petstore
44+
## generate all petstore samples (openapi3)
45+
#- ./bin/openapi3/run-all-petstore
46+
## generate test scripts
47+
#- ./bin/tests/run-all-test
48+
## test all generators with fake petstore spec (2.0, 3.0)
49+
#- ./bin/utils/test-fake-petstore-for-all.sh

0 commit comments

Comments
 (0)