From bf32035c02cf66eb704dbd01aa53d7929dbce8de Mon Sep 17 00:00:00 2001 From: Edward Raigosa Date: Mon, 1 Apr 2019 20:30:04 -0700 Subject: [PATCH 1/5] Answer for prompt 1 --- .travis.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 41c60595f..9baff8ba9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,5 @@ -language: python -install: "pip install -r requirements.txt" +language: java +jdk: oraclejdk8 -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 {} + +install: + - ./gradlew clean jar From ca15cc5beb2d5998700c04f23720dcb138626680 Mon Sep 17 00:00:00 2001 From: Edward Raigosa Date: Mon, 1 Apr 2019 20:33:09 -0700 Subject: [PATCH 2/5] Answer for prompt 2 --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 9baff8ba9..4dd9024d8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,3 +3,5 @@ jdk: oraclejdk8 install: - ./gradlew clean jar +script: + - ./gradlew test From 75f74af388b9e8e40810b4b0799316e16393c0f8 Mon Sep 17 00:00:00 2001 From: Edward Raigosa Date: Mon, 1 Apr 2019 21:01:05 -0700 Subject: [PATCH 3/5] Answer for prompt 3 --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 4dd9024d8..5213582e1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,3 +5,6 @@ install: - ./gradlew clean jar script: - ./gradlew test +after_success: + - ./gradlew jacocoTestReport + - find . -name jacocoTestReport.csv|xargs cat|awk -F',' '{print $3" "$4" "$5}' From 540548b3ab1ed7ecbbfec7aea2a1e85b6c2b82f1 Mon Sep 17 00:00:00 2001 From: Edward Raigosa Date: Mon, 1 Apr 2019 21:15:17 -0700 Subject: [PATCH 4/5] Answer for prompt 5 --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 5213582e1..cb3a66790 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,3 +8,5 @@ script: after_success: - ./gradlew jacocoTestReport - find . -name jacocoTestReport.csv|xargs cat|awk -F',' '{print $3" "$4" "$5}' +before_deploy: + - ./gradlew jacocoTestCoverageVerification From 07bea632a86ef311702e19bc91ca345b2339720e Mon Sep 17 00:00:00 2001 From: Edward Raigosa Date: Mon, 1 Apr 2019 21:17:38 -0700 Subject: [PATCH 5/5] Answer for prompt 6 --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index cb3a66790..b4573b542 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,8 @@ language: java jdk: oraclejdk8 +env: + - COVERAGE=0.15 install: - ./gradlew clean jar script: