33 lines
876 B
YAML
33 lines
876 B
YAML
env:
|
|
global:
|
|
- CC_TEST_REPORTER_ID=605b79baf66dfae052f5734a1c043d6a28f429fe0717f751a1f01813d2df5a54
|
|
language: python
|
|
cache: pip
|
|
python:
|
|
- "2.7"
|
|
- "3.3"
|
|
- "3.4"
|
|
- "3.5"
|
|
- "3.6"
|
|
before_install:
|
|
- pip install pytest pytest-cov coverage urllib3[secure] httmock coveralls setuptools
|
|
install:
|
|
- python setup.py install
|
|
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 coverage run --source usda -m py.test
|
|
after_script:
|
|
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT -t coverage.py
|
|
after_success:
|
|
- coveralls
|
|
notifications:
|
|
webhooks:
|
|
urls:
|
|
- https://webhooks.gitter.im/e/e15c1b6de9d180d2eafe
|
|
on_success: change
|
|
on_failure: always
|
|
on_start: never
|