-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (38 loc) · 885 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
dist: xenial
env:
global:
- CC_TEST_REPORTER_ID=$TEST_REPORTER_ID
language: python
os:
- linux
python:
- '3.7'
install:
- python -m pip install -U pip setuptools
- python -m pip install pipenv
- pipenv install --dev
- python -m pip install -e .
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:
- tox -e lint
- tox -e doclint
- tox -e isort
- tox -e mypy
- tox -e tests
after_script:
- pipenv run coverage xml -o coverage.xml
- "./cc-test-reporter after-build --coverage-input-type coverage.py --exit-code $TRAVIS_TEST_RESULT"
deploy:
- provider: script
script: ci-scripts/semantic-release.sh
on:
branch: master
notifications:
slack:
rooms:
- $SLACK_CHANNEL
on_success: change
on_failure: always