-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
59 lines (58 loc) · 1.39 KB
/
.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
49
50
51
52
53
54
55
56
57
58
59
sudo: false
language: python
dist: xenial
jobs:
include:
- stage: static-tests
name: fmt
python: "3.7"
before_script:
- pip install black==19.10b0 isort==4.3.21
script:
- black --version
- echo -n "isort " && isort --version-number
- black -l 100 --exclude '/(\..*)/' --diff --check hapic tests example
- isort -df -c **/*.py
- stage: static-tests
name: flake8
python: "3.7"
before_script:
- pip install flake8
script:
- flake8 --version
- flake8
- stage: tests
name: tests python3.5
python:
- "3.5"
before_script:
# only testing marshmallow as serpyco is incompatible with python 3.5
- pip install -e ."[test_marshmallow]"
script:
- pytest tests -vvvvv
- stage: tests
name: tests python3.6
python:
- "3.6"
before_script:
- pip install -e ."[test]"
script:
- pytest tests -vvvvv
- stage: tests
name: tests python3.7
python:
- "3.7"
before_script:
- pip install -e ."[test]"
script:
- pytest tests -vvvvv
- stage: tests
name: tests python3.8
python:
- "3.8"
before_script:
- pip install -e ."[test]"
script:
- pytest --cov=hapic tests -vvvvv
after_success:
- coveralls