From 0d5836e28bca30349f8d980124680e00299f1485 Mon Sep 17 00:00:00 2001 From: EmyRukundo <39124680+EmyRukundo@users.noreply.github.com> Date: Mon, 26 Jul 2021 06:06:14 +0200 Subject: [PATCH 1/8] first step update travis yml file --- .travis.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 41c60595f..db35b8dbd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,10 @@ -language: python -install: "pip install -r requirements.txt" - -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 {} + +language: java + +jdk: + - oraclejdk8 + +install: + - "./gradlew clean jar" + + +echo `testing coming soon` \ No newline at end of file From e000116d6ee9314e1336f0d18d6bb2315f1e8604 Mon Sep 17 00:00:00 2001 From: EmyRukundo <39124680+EmyRukundo@users.noreply.github.com> Date: Mon, 26 Jul 2021 06:22:10 +0200 Subject: [PATCH 2/8] added unit testing command --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index db35b8dbd..fd35ff63b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,4 +7,5 @@ install: - "./gradlew clean jar" -echo `testing coming soon` \ No newline at end of file +script: + - ./gradlew test \ No newline at end of file From 44abeba23bd4131ce71796188fa10d70b9cc0bdf Mon Sep 17 00:00:00 2001 From: EmyRukundo <39124680+EmyRukundo@users.noreply.github.com> Date: Mon, 26 Jul 2021 06:28:57 +0200 Subject: [PATCH 3/8] updated testing step --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index fd35ff63b..cdc43596d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,5 @@ install: script: - - ./gradlew test \ No newline at end of file + - ./gradlew test + \ No newline at end of file From cf1a91ae27e5784ecbea8716fe0894edae4a0b1c Mon Sep 17 00:00:00 2001 From: EmyRukundo <39124680+EmyRukundo@users.noreply.github.com> Date: Mon, 26 Jul 2021 06:45:11 +0200 Subject: [PATCH 4/8] added the test report --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index cdc43596d..96c714b1b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,4 +9,8 @@ install: script: - ./gradlew test - \ No newline at end of file + +after_success: + - ./gradlew jacocoTestReport + - find . -name jacocoTestReport.csv|xargs cat|awk -F',' '{print $3" "$4" "$5}' + - ./gradlew test jacocoTestCoverageVerification \ No newline at end of file From 5cd87d59723a9c275ac61f67d32a8b394e259490 Mon Sep 17 00:00:00 2001 From: EmyRukundo <39124680+EmyRukundo@users.noreply.github.com> Date: Mon, 26 Jul 2021 07:46:05 +0200 Subject: [PATCH 5/8] added build test --- .travis.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 96c714b1b..7f45968de 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,4 +13,15 @@ script: after_success: - ./gradlew jacocoTestReport - find . -name jacocoTestReport.csv|xargs cat|awk -F',' '{print $3" "$4" "$5}' - - ./gradlew test jacocoTestCoverageVerification \ No newline at end of file + + + +before _deploy: + - ./gradlew test jacocoTestCoverageVerification + +deploy: + - provider: script + script: echo "WIP" + + on: + all_branches: true \ No newline at end of file From ef58d3abf87153cdeb64f0cead773fe3f78a4c60 Mon Sep 17 00:00:00 2001 From: EmyRukundo <39124680+EmyRukundo@users.noreply.github.com> Date: Mon, 26 Jul 2021 10:10:51 +0200 Subject: [PATCH 6/8] added covarage env variable --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 7f45968de..107701abf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,9 @@ install: - "./gradlew clean jar" +env: + - COVERAGE=0.35 + script: - ./gradlew test @@ -17,7 +20,7 @@ after_success: before _deploy: - - ./gradlew test jacocoTestCoverageVerification + - COVERAGE=$COVERAGE ./gradlew test jacocoTestCoverageVerification deploy: - provider: script From 19dd91ad8c845a236db26ea70807ea48be884eb4 Mon Sep 17 00:00:00 2001 From: EmyRukundo <39124680+EmyRukundo@users.noreply.github.com> Date: Mon, 26 Jul 2021 11:00:33 +0200 Subject: [PATCH 7/8] added updated COVERAGE ENV --- .travis.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 107701abf..0bba4f831 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,16 +3,23 @@ language: java jdk: - oraclejdk8 +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" -env: - - COVERAGE=0.35 - script: - - ./gradlew test - + - COVERAGE=${COVERAGE} + after_success: - ./gradlew jacocoTestReport - find . -name jacocoTestReport.csv|xargs cat|awk -F',' '{print $3" "$4" "$5}' From 626720be3756771ff223f8e4933ac06bf7d128ed Mon Sep 17 00:00:00 2001 From: EmyRukundo <39124680+EmyRukundo@users.noreply.github.com> Date: Mon, 26 Jul 2021 11:23:48 +0200 Subject: [PATCH 8/8] added java 9 jdk --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0bba4f831..89433a611 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ language: java jdk: - oraclejdk8 + - oraclejdk9 env: - COVERAGE=0.5 .gradlew -p ./monolithic/ui check @@ -14,6 +15,7 @@ env: - COVERAGE=0.33 .gradlew -p ./monolithic/repository/user check install: + - "./gradlew clean jar" @@ -33,5 +35,3 @@ deploy: - provider: script script: echo "WIP" - on: - all_branches: true \ No newline at end of file