Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STEP 7: ADDED JAVA 9 JDK #180

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 35 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,37 @@
language: python
install: "pip install -r requirements.txt"
language: java

jdk:
- oraclejdk8
- oraclejdk9

env:
- COVERAGE=0.5 .gradlew -p ./monolithic/ui check
- COVERAGE=0.5 .gradlew -p ./monolithic/service/cart check
- COVERAGE=0.5 .gradlew -p ./monolithic/service/user check

- COVERAGE=0.35 .gradlew -p ./monolithic/repository/order check
- COVERAGE=0.5 .gradlew -p ./monolithic/repository/cart check
- COVERAGE=0.5 .gradlew -p ./monolithic/repository/product check
- COVERAGE=0.33 .gradlew -p ./monolithic/repository/user check

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 {} +
- COVERAGE=${COVERAGE}

after_success:
- ./gradlew jacocoTestReport
- find . -name jacocoTestReport.csv|xargs cat|awk -F',' '{print $3" "$4" "$5}'



before _deploy:
- COVERAGE=$COVERAGE ./gradlew test jacocoTestCoverageVerification

deploy:
- provider: script
script: echo "WIP"