forked from pywinauto/pywinauto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (63 loc) · 2.17 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
dist: xenial
language: cpp
notifications:
email: false
services:
xvfb
language: python
python:
- "2.7"
- "3.4"
- "3.6"
- "3.7"
- "3.8"
os:
- linux
before_install:
- sudo add-apt-repository -y ppa:beineri/opt-qt58-xenial
install:
- pip install python-xlib codecov coverage
# All this dependencies only to build tests application. No real dependency of this packages
- sudo apt-get update
- sudo apt-get -y install at-spi2-core
- sudo apt-get install -qq qt58base;
- sudo apt-get -y install qt58declarative qt58tools
- sudo apt-get install xsel
- sudo apt-get install libgtk-3-dev libgtk2.0-dev
- sudo apt-get install -y python3-gi
- sudo apt-get install --reinstall libgl1-mesa-dev
- source /opt/qt58/bin/qt58-env.sh;
before_script:
- xauth generate :99.0 . trusted
# Clone test apps
- git init apps
- cd apps
- git remote add -f origin https://github.com/pywinauto/PywinautoTestapps/
- git config core.sparseCheckout true
- echo "MouseTester/source" >> .git/info/sparse-checkout
- echo "SendKeysTester/source" >> .git/info/sparse-checkout
- git pull origin master
# Build test apps
- cd MouseTester/source
- qmake
- make
- chmod a+x mousebuttons
- cp mousebuttons ../
- cd $TRAVIS_BUILD_DIR
- cd apps/SendKeysTester/source
- qmake
- make
- chmod a+x send_keys_test_app
- cp send_keys_test_app ../
- cd $TRAVIS_BUILD_DIR
- chmod a+x $TRAVIS_BUILD_DIR/apps/Gtk_samples/gtk_example.py
script:
- coverage run -a --include=pywinauto/mouse.py pywinauto/unittests/test_mouse.py
- coverage run -a --include=pywinauto/linux/keyboard.py pywinauto/unittests/test_keyboard.py
- coverage run -a --include=pywinauto/linux/clipboard.py pywinauto/unittests/test_clipboard_linux.py
- coverage run -a --include=pywinauto/linux/application.py pywinauto/unittests/test_application_linux.py
- coverage run -a --source=pywinauto/linux,pywinauto/controls pywinauto/unittests/test_atspi_element_info.py
- coverage run -a --source=pywinauto/linux,pywinauto/controls pywinauto/unittests/test_atspi_wrapper.py
- coverage run -a --source=pywinauto/linux,pywinauto/controls pywinauto/unittests/test_atspi_controls.py
after_success:
- codecov