From 818779118040db9348ed72fea2b5634b3607e38a Mon Sep 17 00:00:00 2001 From: "David R. Pugh" Date: Tue, 2 May 2017 14:44:58 +0100 Subject: [PATCH 1/7] Initial commit of the .travis.yml file! --- .travis.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..288d8d1 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +dist: trusty + +sudo: false # builds will run on Docker infrastructure! + +language: java + +jdk: + - oraclejdk8 + - openjdk8 + +branches: + only: + - master + - develop From a329de1d0215c92ac2d5df60a939537e6678d51b Mon Sep 17 00:00:00 2001 From: "David R. Pugh" Date: Tue, 2 May 2017 14:57:14 +0100 Subject: [PATCH 2/7] Added the codacy badge... --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 56d1e40..d204a1a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Codacy Badge](https://api.codacy.com/project/badge/Grade/16191a91d7a74bf19841822969c642e0)](https://www.codacy.com/app/herculesl/destilledESL?utm_source=github.com&utm_medium=referral&utm_content=EconomicSL/destilledESL&utm_campaign=Badge_Grade) + # ESL ESL compiles with maven. To build a .jar type 'mvn package'. Once the .jar is build the simulation engine resides in org.destilledESL. From 3cd53bed9071c0fb45f1307662f7b1eb877b518f Mon Sep 17 00:00:00 2001 From: "David R. Pugh" Date: Wed, 3 May 2017 07:09:04 +0100 Subject: [PATCH 3/7] Download the plugin and compute test coverage --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 288d8d1..27c1cd6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,3 +12,9 @@ branches: only: - master - develop + +before_install: # might need to version bump this plugin from time to time... + - wget -O ~/codacy-coverage-reporter-assembly-latest.jar https://github.com/codacy/codacy-coverage-reporter/releases/download/1.0.13/codacy-coverage-reporter-1.0.13-assembly.jar + +after_success: + - java -cp ~/codacy-coverage-reporter-assembly-latest.jar com.codacy.CodacyCoverageReporter -l Java -r jacoco.xml From 33a733a1d9db4bfa86dcb4bf8538c6f247844c54 Mon Sep 17 00:00:00 2001 From: "David R. Pugh" Date: Wed, 3 May 2017 07:23:21 +0100 Subject: [PATCH 4/7] Need to encrypt token --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 27c1cd6..251ae72 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,3 +18,7 @@ before_install: # might need to version bump this plugin from time to time... after_success: - java -cp ~/codacy-coverage-reporter-assembly-latest.jar com.codacy.CodacyCoverageReporter -l Java -r jacoco.xml + +env: + global: + - secure: "Eventually this will be an encrypted Codacy token!" From 130cdb035e6cdc5735fa3d9832674602734b30e5 Mon Sep 17 00:00:00 2001 From: "David R. Pugh" Date: Wed, 3 May 2017 07:29:01 +0100 Subject: [PATCH 5/7] Added travis ci badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d204a1a..98fcf17 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![Build Status](https://travis-ci.org/EconomicSL/destilledESL.svg?branch=master)](https://travis-ci.org/EconomicSL/destilledESL) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/16191a91d7a74bf19841822969c642e0)](https://www.codacy.com/app/herculesl/destilledESL?utm_source=github.com&utm_medium=referral&utm_content=EconomicSL/destilledESL&utm_campaign=Badge_Grade) # ESL From 4c886a65bf0612e9618f14504bb1c4a0484b1ef9 Mon Sep 17 00:00:00 2001 From: herculesl Date: Sun, 7 May 2017 12:10:49 +0300 Subject: [PATCH 6/7] Added encrypted codacy token... --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 251ae72..b9dec14 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,4 +21,4 @@ after_success: env: global: - - secure: "Eventually this will be an encrypted Codacy token!" + - secure: "WxfSyMxDiAAHqCoqnG9KXw85YhtC1a7JoN99cdM7VJ2crl8PTK8Pe1o9EPVffnydNKxWES2ewFN+kVKUkWZEH+K8ZPaVpOZ1rPiC0+dNl6P8loT8ft/ii6B+WReLIfWm5jA7xevuhJGSNlDGIJJ/HCdS/JNMQoViOV7ffSs8BuKHy3FcgfusnFNyUvkJCVEKQV+l8Wu3+6f0GrQaNHBFZRqPNETWU4sQnz4GksU6OCLubC8DTNH9ktFFN+isndWl0J+ixBrcQ/uQHtRMhz9s3/Lc92cQJkHP4O/AyOtPqbceBAE2wSEPzZzIv7Kp2SdTIq72G5aNowts7Y0RLPBPwsiG7ujgyeNUTEzV/RdyMo2k83OuQcIKNQdw/T8XUnnpwCz18OmuO416UHHtoaFJlHtbmwjZQfLdkhTos2t+0axGFKHQC4IVW+EwxCSwGnPHRgfueBWptEpjQvWFv/pg43wfPCmNjN5HnFfGQ9JIkwc6O7efZF4hNSXAZjUABAqvDjONuuzN7OnQuK1LCwaVR1SXB9WzO1F7csfllKM1aeSxTDfwXmQ4ZvvHUaZjytqsZic1rfW7YgyE71Qb3jXcBl6c9kzsPzz142l6OS5iroCA3oppqqXMn8uqwif0Y9DgNvvpcqApg8GSMaESewyqRkmyGpdUqYYRHTk2LRhd1nc=" From 36fb81971991f4b8d05cc9b82ad2292f7526e4dc Mon Sep 17 00:00:00 2001 From: herculesl Date: Sun, 7 May 2017 12:18:31 +0300 Subject: [PATCH 7/7] Updated with instructions from codacy... --- .travis.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index b9dec14..497c2cb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,12 +13,13 @@ branches: - master - develop -before_install: # might need to version bump this plugin from time to time... - - wget -O ~/codacy-coverage-reporter-assembly-latest.jar https://github.com/codacy/codacy-coverage-reporter/releases/download/1.0.13/codacy-coverage-reporter-1.0.13-assembly.jar - +before_install: + - sudo apt-get install jq + - wget -O ~/codacy-coverage-reporter-assembly-latest.jar $(curl https://api.github.com/repos/codacy/codacy-coverage-reporter/releases/latest | jq -r .assets[0].browser_download_url) + after_success: - - java -cp ~/codacy-coverage-reporter-assembly-latest.jar com.codacy.CodacyCoverageReporter -l Java -r jacoco.xml - + - java -cp ~/codacy-coverage-reporter-assembly-latest.jar com.codacy.CodacyCoverageReporter -l Java -r build/reports/jacoco/test/jacocoTestReport.xml + env: global: - secure: "WxfSyMxDiAAHqCoqnG9KXw85YhtC1a7JoN99cdM7VJ2crl8PTK8Pe1o9EPVffnydNKxWES2ewFN+kVKUkWZEH+K8ZPaVpOZ1rPiC0+dNl6P8loT8ft/ii6B+WReLIfWm5jA7xevuhJGSNlDGIJJ/HCdS/JNMQoViOV7ffSs8BuKHy3FcgfusnFNyUvkJCVEKQV+l8Wu3+6f0GrQaNHBFZRqPNETWU4sQnz4GksU6OCLubC8DTNH9ktFFN+isndWl0J+ixBrcQ/uQHtRMhz9s3/Lc92cQJkHP4O/AyOtPqbceBAE2wSEPzZzIv7Kp2SdTIq72G5aNowts7Y0RLPBPwsiG7ujgyeNUTEzV/RdyMo2k83OuQcIKNQdw/T8XUnnpwCz18OmuO416UHHtoaFJlHtbmwjZQfLdkhTos2t+0axGFKHQC4IVW+EwxCSwGnPHRgfueBWptEpjQvWFv/pg43wfPCmNjN5HnFfGQ9JIkwc6O7efZF4hNSXAZjUABAqvDjONuuzN7OnQuK1LCwaVR1SXB9WzO1F7csfllKM1aeSxTDfwXmQ4ZvvHUaZjytqsZic1rfW7YgyE71Qb3jXcBl6c9kzsPzz142l6OS5iroCA3oppqqXMn8uqwif0Y9DgNvvpcqApg8GSMaESewyqRkmyGpdUqYYRHTk2LRhd1nc="