-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
48 lines (40 loc) · 1018 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
45
46
47
48
language: python
fast_finish: true
dist: xenial
cache: pip
python:
- 3.7
- 3.6
_def_windows_os: &windows_os
os: windows
language: shell
before_install: choco install python
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
stages:
- name: quality
- name: test
install:
- pip install pytest
- pip install pytest-cov
- pip install codecov
- pip install -r requirements.txt
script: pytest --ignore=test_integration
jobs:
include:
- <<: *windows_os
name: Run all tests and coverage with Python 3.7.3 on Windows
script: pytest --cov=sat --cov-report=term --cov-branch --cov-config=conf/.coveragerc
after_success: codecov
- stage: quality
name: style checks and linting
install:
- pip install black
- pip install pylint
- pip install -r requirements.txt
script:
- black sat test test_integration --diff --check
- python -m pylint sat test test_integration --rcfile conf/.pylintrc
notifications:
email:
on_success: change
on_failure: always