forked from ukBaz/python-bluezero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
executable file
·68 lines (65 loc) · 2.09 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
60
61
62
63
64
65
66
67
68
language: python
sudo: required
# look at https://github.com/pypa/pip for examples?
# https://docs.travis-ci.com/user/multi-os/
python:
- "3.6"
# virtualenv:
# system_site_packages: true
# matrix:
# include:
# - python: 2.7
# env: PYTHONPATH="$PYTHONPATH:/usr/lib/python2.7/dist-packages"
# - python: 3.3
# env: PYTHONPATH="$PYTHONPATH:/usr/lib/python3/dist-packages"
# addons:
# apt:
# packages:
# - python-dbus
# - python3-dbus
# - python-gi
# - python3-gi
before_install:
# sudo apt-get update -qq
# sudo apt-get install -qq python-dbus python3-dbus python-gi python3-gi
# install dbusmock from github
# ./install_dbusmock.sh
install:
# - pip install --upgrade pip
- pip install pycodestyle
- pip install 'coverage>4.0,<4.4'
- pip install codecov
# Install released version of dbusmock
# - pip install python-dbusmock
before_script:
# - .travis/setup.sh
# - echo "Travis Python Version ***********"
# - echo $TRAVIS_PYTHON_VERSION
# - echo $PYTHONPATH
# If dbusmock installed from github
# - export PYTHONPATH=$PYTHONPATH:/tmp/python-dbusmock-bluez_gatt
script:
# Shared
- coverage run -m unittest -v tests.test_tools
- coverage run --append -m unittest -v tests.test_dbus_tools
- coverage run --append -m unittest -v tests.test_async_tools
# Level 100
- coverage run --append -m unittest -v tests.test_adapter
- coverage run --append -m unittest -v tests.test_advertisement
- coverage run --append -m unittest -v tests.test_device
- coverage run --append -m unittest -v tests.test_gatt
# Level 10
- coverage run --append -m unittest -v tests.test_broadcaster
- coverage run --append -m unittest -v tests.test_central
- coverage run --append -m unittest -v tests.test_peripheral
# Level 1
- coverage run --append -m unittest -v tests.test_eddystone
- coverage run --append -m unittest -v tests.test_microbit
# Examples (Level 1)
- coverage run --append -m unittest -v tests.test_adapter_example
- "pycodestyle bluezero"
- "pycodestyle examples"
# - "pycodestyle tests"
after_success:
#
- codecov