forked from pywinauto/pywinauto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (56 loc) · 1.53 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
sudo: required
dist: trusty
language: cpp
notifications:
email: false
language: python
python:
#- "2.6"
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
os:
- linux
before_install:
- sudo add-apt-repository -y ppa:beineri/opt-qt58-trusty
install:
- pip install python-xlib codecov coverage
- sudo apt-get update
- sudo apt-get install -qq qt58base;
- sudo apt-get -y install qt58declarative qt58tools
- sudo apt-get install xsel
- source /opt/qt58/bin/qt58-env.sh;
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
- 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
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
after_success:
- codecov