-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.travis.yml
56 lines (47 loc) · 2.06 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
# gui requirements
sudo: required
language: python
# python versions to use during the tests
python:
- "3.7"
addons:
apt:
packages:
- x11-utils
- libxkbcommon-x11-0
- xvfb
- herbstluftwm # https://pytest-qt.readthedocs.io/en/latest/troubleshooting.html#xvfb-assertionerror-timeouterror-when-using-waituntil-waitexposed-and-ui-events
- qt5-default
- qttools5-dev-tools
- libpulse-mainloop-glib0
- pulseaudio
- libpulse-dev
services:
- xvfb
env:
- DISPLAY=":99.0" QT_DEBUG_PLUGINS=1 # https://pytest-qt.readthedocs.io/en/latest/troubleshooting.html?highlight=travis#xvfb-assertionerror-timeouterror-when-using-waituntil-waitexposed-and-ui-events
install:
- pip install -U pip
- pip install -r requirements.txt
- pip install -r requirements_tests.txt
- pip install -e .
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX +render -noreset"
- sleep 3
# command to run tests
before_script:
- "herbstluftwm &"
- sleep 1
- mkdir -p /home/travis/pvp/logs # make directories for logs
- pylint pvp
script:
- pytest --cov=pvp --cov-report term-missing tests
after_script:
- coveralls
deploy:
provider: pypi
username: __token__
password:
secure: RC760UAZ0PQa/lD+lva+QiJGRxMR9kbvxfU94yHc35RLp+Fe37i3aK5cl1PwGxyMGKb9R9ZEPOZElyGpJVw3X84HqoPoFC0CMqKbU+nn0pGwTqpIZdLVcNln5bENiM4tFzoGHhpbdMpkaHCrVJR4fNtueaCmVzBPY/OwrqadeHa3Zco+AFVw6EeGbZs4xRn+8V+kxGb1upHpDuU3D0OrZbMYIjVjDdAi6U19Yt09uOHHPYBtUSFxYfBrip83MPSgGie3fSL6zFb/AAikFvB23z2/f0UbhFPRXn6l1iSuEBLz5xU9LXun5pw3/uc0JtbkLv+rd/zNCSCY913nSX0DFCJjyj7hwAAtOP3hJMZs9MVThy5eePWTlNmrSems04xhQLU7BCbF2FxYeTJZn76Zfh72sJy3oG7lHuDyfkQT5CFIhwCn9X6mWMZLQeoIMQ7NzIq/IOhafYf5yMvXbjGuAV5RtvQHVskE2VWc/G4fss/TB2woKSn5h8XRjvBN6ZoxctPqgSG/eN9LNqmlrLF8E4f6WOHZlzRUnZl1Dcz1NYW1l23oI8mXcvRkTBiAmu9BJ+BRLQCGcRVg6fDyqNq7y81xXmE7r7rqDdoY4fEeikF6kOWNJsaFJVSz6hujVFXqFE5K/o1Lqpzml0JJVZ7qZZE6acE87qlw0AiILlihWvU=
on:
tags: true
distributions: "sdist bdist_wheel"