forked from loafle/openapi-generator-original
[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 8c9a1512ae824d35866375eb69ddd085309d0251. * Revert "Revert "[maven-plugin] fix strictSpec parameter (#3071)"" This reverts commit c3e5723c5a365ffb8a6cedfcc4a7a278543e63a3. * test with jdk8
This commit is contained in:
parent
dcf3f420f9
commit
9f1b9386f1
@ -131,6 +131,9 @@ script:
|
|||||||
# WARN: Travis will timeout after 10 minutes of no stdout/stderr activity, which is problematic with mvn --quiet.
|
# WARN: Travis will timeout after 10 minutes of no stdout/stderr activity, which is problematic with mvn --quiet.
|
||||||
- mvn --quiet --batch-mode --show-version clean install
|
- mvn --quiet --batch-mode --show-version clean install
|
||||||
- mvn --quiet --batch-mode --show-version verify -Psamples
|
- mvn --quiet --batch-mode --show-version verify -Psamples
|
||||||
|
# test maven plugin
|
||||||
|
- mvn clean compile -f modules/openapi-generator-maven-plugin/examples/java-client.xml
|
||||||
|
- mvn clean compile -f modules/openapi-generator-maven-plugin/examples/multi-module/pom.xml
|
||||||
after_success:
|
after_success:
|
||||||
# push to maven repo
|
# push to maven repo
|
||||||
- if [ $SONATYPE_USERNAME ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
- if [ $SONATYPE_USERNAME ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
||||||
|
@ -12,6 +12,15 @@ if [ "$NODE_INDEX" = "1" ]; then
|
|||||||
#cp CI/pom.xml.circleci pom.xml
|
#cp CI/pom.xml.circleci pom.xml
|
||||||
java -version
|
java -version
|
||||||
mvn --quiet verify -Psamples.circleci
|
mvn --quiet verify -Psamples.circleci
|
||||||
|
|
||||||
|
# generate all petstore samples (client, servers, doc)
|
||||||
|
./bin/run-all-petstore
|
||||||
|
# generate all petstore samples (openapi3)
|
||||||
|
./bin/openapi3/run-all-petstore
|
||||||
|
# generate test scripts
|
||||||
|
./bin/tests/run-all-test
|
||||||
|
# test all generators with fake petstore spec (2.0, 3.0)
|
||||||
|
./bin/utils/test-fake-petstore-for-all.sh
|
||||||
elif [ "$NODE_INDEX" = "2" ]; then
|
elif [ "$NODE_INDEX" = "2" ]; then
|
||||||
# run ensure-up-to-date sample script on SNAPSHOT version only
|
# run ensure-up-to-date sample script on SNAPSHOT version only
|
||||||
project_version=`mvn org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression=project.version -q -DforceStdout`
|
project_version=`mvn org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression=project.version -q -DforceStdout`
|
||||||
|
@ -38,11 +38,12 @@ build:
|
|||||||
- mix --version
|
- mix --version
|
||||||
# test samples defined in pom.xml
|
# test samples defined in pom.xml
|
||||||
- mvn --quiet verify -P samples.shippable -Dmaven.javadoc.skip=true
|
- mvn --quiet verify -P samples.shippable -Dmaven.javadoc.skip=true
|
||||||
# generate all petstore samples (client, servers, doc)
|
# below moved to CircleCI
|
||||||
- ./bin/run-all-petstore
|
## generate all petstore samples (client, servers, doc)
|
||||||
# generate all petstore samples (openapi3)
|
#- ./bin/run-all-petstore
|
||||||
- ./bin/openapi3/run-all-petstore
|
## generate all petstore samples (openapi3)
|
||||||
# generate test scripts
|
#- ./bin/openapi3/run-all-petstore
|
||||||
- ./bin/tests/run-all-test
|
## generate test scripts
|
||||||
# test all generators with fake petstore spec (2.0, 3.0)
|
#- ./bin/tests/run-all-test
|
||||||
- ./bin/utils/test-fake-petstore-for-all.sh
|
## test all generators with fake petstore spec (2.0, 3.0)
|
||||||
|
#- ./bin/utils/test-fake-petstore-for-all.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user