forked from jopohl/urh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
101 lines (90 loc) · 2.18 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
os: linux
language: python
dist: trusty
sudo: required
env:
global:
- DISPLAY=:99.0
- LIBOVERLAY_SCROLLBAR=0
matrix:
include:
- python: 3.4_with_system_site_packages
- python: 3.5
- python: 3.6
- python: 3.7
dist: xenial
sudo: true
- os: osx
language: generic
osx_image: xcode10
allow_failures:
- python: 3.4_with_system_site_packages
notifications:
email: false
branches:
only:
- master
- /^v\d+\.\d+(\.\d+)*(-\S*)?$/
git:
depth: 5
install:
- |
if [[ $TRAVIS_OS_NAME == "osx" ]]
then
brew upgrade python
rm '/usr/local/include/c++'
brew install hackrf librtlsdr
else
sudo apt-get install libhackrf-dev librtlsdr-dev
fi
- pip3 install cython
- |
if [[ $TRAVIS_PYTHON_VERSION == "3.4"* ]]
then
sudo apt-get update && sudo apt-get -y install python3-zmq python3-pyqt5 python3-numpy python3-psutil
else
pip3 install -r data/requirements.txt
fi
- |
if [[ $TRAVIS_PYTHON_VERSION == "3.6"* ]]
then
pip3 install pytest-cov coveralls pytest-xdist
coverage --version
else
pip3 install pytest pytest-xdist
fi
- |
if [[ $TRAVIS_OS_NAME == "linux" ]]
then
sh -e /etc/init.d/xvfb start
sleep 5
fi
before_script:
- touch tests/show_gui
- python3 -c "from PyQt5.QtCore import QT_VERSION_STR; from PyQt5.Qt import PYQT_VERSION_STR; from sip import SIP_VERSION_STR; print('QT Version:', QT_VERSION_STR); print('PyQt Version:', PYQT_VERSION_STR); print('SIP version:', SIP_VERSION_STR)"
script:
- python3 src/urh/cythonext/build.py &> /tmp/build_log.txt
- |
if [[ $TRAVIS_PYTHON_VERSION == "3.6"* ]]
then
pytest -s --boxed --cov-report= --cov=src/urh --cov-config tests/.coveragerc tests
elif [[ $TRAVIS_OS_NAME == "osx" ]]
then
pytest tests
else
pytest -s --boxed tests
fi
- pip3 install .
- urh --version
- urh autoclose
after_success:
- |
if [[ $TRAVIS_PYTHON_VERSION == "3.6"* ]]
then
coverage combine
coveralls --rcfile=tests/.coveragerc
else
echo "coverage upload only for python 3.6"
fi
after_script:
- cat /tmp/build_log.txt