.travis.yml
language: python
sudo: required
services:
mongodb
python:
- "3.6"
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
# command to install dependencies
install:
- pip install -r requirements.txt
- pip install -e .
# command to run tests
script:
- pytest tests/
after_script:
- coverage xml
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT