Test: Report coverage
@@ -4,6 +4,12 @@ python:
install:
- pip install -r requirements.txt
- pip install -r test-requirements.txt
+before_script:
+ - 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
script:
- python -m pytest --cov=elasticpypi
- flake8 --max-complexity=6 --max-line-length=120 --exclude node_modules,.requirements
+after_script:
+ - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
