forked from loafle/openapi-generator-original
update ci config to install codegen locally
This commit is contained in:
parent
8d2fa6b8ea
commit
e798c2b30e
@ -77,6 +77,7 @@ script:
|
|||||||
# fail if generators contain tab '\t'
|
# fail if generators contain tab '\t'
|
||||||
- /bin/bash ./bin/utils/detect_tab_in_java_class.sh
|
- /bin/bash ./bin/utils/detect_tab_in_java_class.sh
|
||||||
# run integration tests defined in maven pom.xml
|
# run integration tests defined in maven pom.xml
|
||||||
|
- mvn clean install
|
||||||
- mvn -q --batch-mode verify -Psamples
|
- mvn -q --batch-mode verify -Psamples
|
||||||
# Below has been moved to CircleCI
|
# Below has been moved to CircleCI
|
||||||
# docker: build generator image and push to Docker Hub
|
# docker: build generator image and push to Docker Hub
|
||||||
|
@ -34,13 +34,15 @@ test:
|
|||||||
override:
|
override:
|
||||||
## test with jdk8
|
## test with jdk8
|
||||||
- java -version
|
- java -version
|
||||||
- mvn -q clean verify -Psamples
|
- mvn clean install
|
||||||
|
- mvn -q verify -Psamples
|
||||||
# skip the rest if previous mvn task fails
|
# skip the rest if previous mvn task fails
|
||||||
- if [ $? -ne 0 ]; then exit 1; fi
|
- if [ $? -ne 0 ]; then exit 1; fi
|
||||||
## test with jdk7
|
## test with jdk7
|
||||||
- sudo update-java-alternatives -s java-1.7.0-openjdk-amd64
|
- sudo update-java-alternatives -s java-1.7.0-openjdk-amd64
|
||||||
- java -version
|
- java -version
|
||||||
- mvn -q clean verify -Psamples
|
- mvn clean install
|
||||||
|
- mvn -q verify -Psamples
|
||||||
# skip the rest if previous mvn task fails
|
# skip the rest if previous mvn task fails
|
||||||
- if [ $? -ne 0 ]; then exit 1; fi
|
- if [ $? -ne 0 ]; then exit 1; fi
|
||||||
## docker: build generator image and push to Docker Hub
|
## docker: build generator image and push to Docker Hub
|
||||||
|
@ -22,6 +22,7 @@ build:
|
|||||||
- mix --version
|
- mix --version
|
||||||
# test samples defined in pom.xml
|
# test samples defined in pom.xml
|
||||||
- cp pom.xml.shippable pom.xml
|
- cp pom.xml.shippable pom.xml
|
||||||
|
- mvn clean install
|
||||||
- mvn verify -P samples
|
- mvn verify -P samples
|
||||||
# generate all petstore sampless (client, servers, doc)
|
# generate all petstore sampless (client, servers, doc)
|
||||||
- ./bin/run-all-petstore 2>&1 > run-all-petstore.log
|
- ./bin/run-all-petstore 2>&1 > run-all-petstore.log
|
||||||
|
Loading…
x
Reference in New Issue
Block a user