forked from exonum/exonum-python-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (43 loc) · 1.32 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
language: python
python:
- "3.7"
matrix:
fast_finish: true
sudo: false
dist: bionic
addons:
apt:
sources:
- sourceline: 'ppa:maarten-fonville/protobuf'
packages:
- libsodium-dev
- libprotobuf-dev
- protobuf-compiler
jobs:
include:
- name: lints
install:
- pip install black
- pip install pylint
- pip install mypy
- pip install --no-binary=protobuf protobuf pysodium requests websocket-client-py3
script:
- black --check -l 120 . --exclude=".*_pb2.py"
- mypy --ignore-missing-imports --disallow-untyped-defs ./exonum_client ./examples
- pylint exonum_client --max-line-length=120 --disable=fixme,bad-continuation,too-few-public-methods
- name: docs
install:
- pip install sphinx
script:
- pip install -e .
- cd docs
# Build docs to see that the code does not fail:
- make html
# Then check that there are no warnings at the build:
- WARNINGS_COUNT=`make clean > /dev/null && make html | grep warning | wc -l`
- if [ $WARNINGS_COUNT != 0 ]; then exit 1; fi
- name: tests
install: pip install --no-binary=protobuf protobuf pysodium requests websocket-client-py3 codecov
script: coverage run -m unittest
after_success:
- codecov