-
Piotr Maślanka authoredb0763b97
.travis.yml 649 B
language: python
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
- pip install -r requirements.txt
- pip install pytest mock coverage cython[coverage] pytest-cov
- DEBUG=1 python setup.py build_ext --inplace --force --define CYTHON_TRACE
- rm -rf minijson
jobs:
include:
- stage: test
python: "3.8"
script:
- pytest --cov=./ --cov-report=xml
after_script:
- ./cc-test-reporter after-build -t coverage.py --exit-code ${TRAVIS_TEST_RESULT}