update ci config to install codegen locally

This commit is contained in:
wing328 2017-12-22 11:59:40 +08:00
parent 8d2fa6b8ea
commit e798c2b30e
3 changed files with 6 additions and 2 deletions

View File

@ -77,6 +77,7 @@ script:
# fail if generators contain tab '\t'
- /bin/bash ./bin/utils/detect_tab_in_java_class.sh
# run integration tests defined in maven pom.xml
- mvn clean install
- mvn -q --batch-mode verify -Psamples
# Below has been moved to CircleCI
# docker: build generator image and push to Docker Hub

View File

@ -34,13 +34,15 @@ test:
override:
## test with jdk8
- java -version
- mvn -q clean verify -Psamples
- mvn clean install
- mvn -q verify -Psamples
# skip the rest if previous mvn task fails
- if [ $? -ne 0 ]; then exit 1; fi
## test with jdk7
- sudo update-java-alternatives -s java-1.7.0-openjdk-amd64
- java -version
- mvn -q clean verify -Psamples
- mvn clean install
- mvn -q verify -Psamples
# skip the rest if previous mvn task fails
- if [ $? -ne 0 ]; then exit 1; fi
## docker: build generator image and push to Docker Hub

View File

@ -22,6 +22,7 @@ build:
- mix --version
# test samples defined in pom.xml
- cp pom.xml.shippable pom.xml
- mvn clean install
- mvn verify -P samples
# generate all petstore sampless (client, servers, doc)
- ./bin/run-all-petstore 2>&1 > run-all-petstore.log