generic/.travis.yml
2019-11-09 12:05:26 +01:00

45 lines
946 B
YAML

language: python
dist: xenial
cache: pip
stages:
- lint
- test
jobs:
include:
- python: 3.7
- python: 3.8
- stage: lint
python: 3.7
before_install: skip
install:
- pip install pre-commit
- pre-commit install-hooks
script:
- pre-commit run --all-files
after_success: skip
install:
- pip install poetry==1.0.0b3
- poetry 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:
- pytest --cov=generic
after_script:
- coverage xml
- ./cc-test-reporter after-build --coverage-input-type coverage.py --exit-code $TRAVIS_TEST_RESULT
notifications:
email: false
webhooks:
urls:
- https://webhooks.gitter.im/e/1e0a1432c48a12660160
on_success: change
on_failure: always
on_start: never