-
Notifications
You must be signed in to change notification settings - Fork 121
/
.travis.yml
48 lines (41 loc) · 1.07 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
dist: focal
branches:
only:
- master
- /(\d+\.?)+/
language: python
python: 3.8
addons:
apt:
packages:
- libboost-python-dev
- libboost-thread-dev
- libbluetooth-dev
- libglib2.0-dev
- libdbus-1-dev
- libdbus-glib-1-dev
- libgirepository-1.0-1
- libgirepository1.0-dev
# - libcairo2-dev
- bluez
install:
- dpkg -l | grep cairo
- wget https://github.com/labapart/gattlib/releases/download/dev/gattlib_dbus_0.2-dev_x86_64.deb && sudo dpkg -i gattlib_dbus_0.2-dev_x86_64.deb
- pip install --upgrade typing-extensions
- pip install codecov codacy-coverage pytest pygatt gatt pexpect bluepy bleak packaging dbus-python pygobject
- pip install --upgrade attrs
env:
- READTHEDOCS=True
script:
- coverage run --omit="examples/*" --source=. -m pytest -v --ignore=examples --log-level=INFO tests
after_success:
- coverage report -m
- coverage xml
- codecov
- python-codacy-coverage -r coverage.xml
deploy:
edge: true # use latest v2 deploy
provider: pypi
# skip_cleanup: true
on:
tags: true