Browse Source

Add code climate test coverage to travis.yml

Lacey Sanderson 6 years ago
parent
commit
b9169ae0c6
1 changed files with 5 additions and 0 deletions
  1. 5 0
      .travis.yml

+ 5 - 0
.travis.yml

@@ -14,6 +14,11 @@ before_script:
   - docker pull statonlab/tripal3
   - wget ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.2.30/ncbi-blast-2.2.30+-x64-linux.tar.gz
   - tar xzf ncbi-blast-2.2.30+-x64-linux.tar.gz
+  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
+  - chmod +x ./cc-test-reporter
+  - ./cc-test-reporter before-build
+after_script:
+  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
 script:
   - docker run -it -d --rm --name tripal -v "$(pwd)":/modules/tripal_blast statonlab/tripal3
   - sleep 30 # We pause here so postgres and apache complete booting up