piotrmaslanka/fastapi-satella-metrics

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: python
python:
  - "3.6"
  - "3.7"
  - "3.8"
cache: pip
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
install:
  - pip install -r requirements.txt
  - pip install coverage requests nose2 uvicorn
script:
  - coverage run -m nose2 -vv
after_success:
  - coverage combine
  - coverage report
  - coverage xml
  - ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT