Skip to content

Commit ea0268d

Browse files
committed
test plugin in travis, move jobs to circle CI
1 parent 8c9a151 commit ea0268d

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ if [ "$NODE_INDEX" = "1" ]; then
1212
#cp CI/pom.xml.circleci pom.xml
1313
java -version
1414
mvn --quiet verify -Psamples.circleci
15+
# generate test scripts
16+
./bin/tests/run-all-test
17+
# test all generators with fake petstore spec (2.0, 3.0)
18+
./bin/utils/test-fake-petstore-for-all.sh
1519
elif [ "$NODE_INDEX" = "2" ]; then
1620
# run ensure-up-to-date sample script on SNAPSHOT version only
1721
project_version=`mvn org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression=project.version -q -DforceStdout`
@@ -51,6 +55,11 @@ else
5155
java -version
5256
#cp CI/pom.xml.circleci.java7 pom.xml
5357
mvn --quiet verify -Psamples.circleci.jdk7
58+
59+
# generate all petstore samples (client, servers, doc)
60+
./bin/run-all-petstore
61+
# generate all petstore samples (openapi3)
62+
./bin/openapi3/run-all-petstore
5463
fi
5564

5665

shippable.yml

Lines changed: 9 additions & 8 deletions
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)