diff --git a/.travis.yml b/.travis.yml index 41c60595f..b4573b542 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,14 @@ -language: python -install: "pip install -r requirements.txt" +language: java +jdk: oraclejdk8 +env: + - COVERAGE=0.15 +install: + - ./gradlew clean jar script: - # Run ANSIBLE checks - # - ANSIBLE0008: Disabled for use of sudo warnings - to address - # - ANSIBLE0011: Disabled for all tasks which should be named - # - ANSIBLE0012: Disabled (should not change if nothings needs doing) - to address - # - ANSIBLE0013: Disabled - few uses of shell commands - to address - - find vagrant/provision -name "*.yml" -exec ansible-lint -x ANSIBLE008,ANSIBLE0011,ANSIBLE0012,ANSIBLE0013 {} + + - ./gradlew test +after_success: + - ./gradlew jacocoTestReport + - find . -name jacocoTestReport.csv|xargs cat|awk -F',' '{print $3" "$4" "$5}' +before_deploy: + - ./gradlew jacocoTestCoverageVerification