-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
37 lines (37 loc) · 1.05 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
language: python
python:
- 3.7
dist: bionic
addons:
apt:
sources:
- sourceline: ppa:maarten-fonville/protobuf
packages:
- libsodium-dev
- libprotobuf-dev
- protobuf-compiler
sonarcloud:
organization: exonum
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
PyYAML
- git clone https://github.com/exonum/exonum-python-client.git
- pip install -e exonum-python-client
script:
- black --check -l 120 . --exclude=".*_pb2.py" --exclude="exonum-python-client"
- mypy --ignore-missing-imports --disallow-untyped-defs ./exonum_launcher
- pylint exonum_launcher --max-line-length=120 --disable=fixme,bad-continuation,too-few-public-methods,duplicate-code,too-many-instance-attributes,invalid-name,raise-missing-from
- name: tests
install:
- pip install -r requirements.txt
script:
- python -m unittest -v
- name: sonar
script:
- sonar-scanner