forked from auto-pi-lot/autopilot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
78 lines (64 loc) · 2.49 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
sudo: required
language: python
python:
- "3.7"
- "3.8"
- "3.9"
arch:
- amd64
os:
- linux
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
- libxcb-icccm4 # https://pytest-qt.readthedocs.io/en/latest/troubleshooting.html#github-actions
- libxcb-image0
- libxcb-keysyms1
- libxcb-randr0
- libxcb-render-util0
- libxcb-xinerama0
- libxcb-xfixes0
# enable virtual framebuffer for testing GUI
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 -U pytest
- pip install -U pytest-cov
- pip install -U pylint
- pip install -U coveralls
- pip install -U pytest-qt~=3.3.0
- 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
# make directories?
before_script:
- "herbstluftwm &"
- sleep 1
- mkdir -p /home/travis/autopilot # make directories for logs
- mkdir -p /home/travis/autopilot/logs
# - pylint autopilot
script:
- pytest --cov=autopilot --cov-config=.coveragerc --cov-report term-missing tests
after_script:
- coverage combine --append
- coveralls
before_deploy:
- pip install scikit-build
deploy:
provider: pypi
username: __token__
pasword:
secure: mIaKgOMl4tjUvLlpSGwbuUj2A7QK0nMnQzlYygdVN5vCuvXnggScytqwXNqjSqjB3cn0R4EKllCfnREsIqBgYrEsRCRIexwLuz58KDo6qjSad/ycpCjmtz/6nvuJp3I2iJGudzCZ/W1MCpz0ExAvvHXm7k0U4J831bK+mFYqe8RHJxcAuYMJndEUaD5s/Ly+ozqJYx3H9+f/fggpVAlGu/oy5p77so9vQA0xvayodQKzL1XGvNHBXMEKtBtEN33pTKDbOY3bQ7GR0WLE7pd+bg1rZ/r5EsvlHAlHR/rSCWDNq4K0Qk3ZyUeHLX9UjKIImXbhMMyNSyz98DkgUd/TkfGG2K2jyKd7WR1KqOrNjy+clqTdyj1fcHtm8au6YsvYLvR9qmO1prwrGq1vMH0/qvOrcM3+OU3hGdUwtjth3F+TTsc57O22qHjpeq/xlWtFC8vAF92ZHzPWW6xBApYB3+MJZHh27LJL/rdbAv/WoYPZbQWiqxNm869GCaSzjBGZ/Zx5BPpGbJUb8N+pBHgow3gww2TMS1C7W3gDVPm42DL8ehhOEJZBT9FIfzAooeyxzyvUb6gSdtshGUuJPe8HdZhNn5n4rFuSoZ7edCbEEM7bQ/gqOJK9Ccr+4yi/9MHBXB7LsjB32tzlxbsEePG18ac85wJp1Z64QYMpzV5DAi0=
on:
tags: true
branch: master
distributions: "sdist"