forked from ponty/pyscreenshot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (26 loc) · 1.01 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
language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "2.7_with_system_site_packages"
- "3.2_with_system_site_packages"
install:
- sudo apt-get install python-dev xvfb x11-utils x11-apps
- sudo apt-get install scrot imagemagick
- if [ "$TRAVIS_PYTHON_VERSION" == "2.7_with_system_site_packages" ]; then sudo apt-get install python-qt4 python-gtk2 python-wxgtk2.8; fi
- if [ "$TRAVIS_PYTHON_VERSION" == "3.2_with_system_site_packages" ]; then sudo apt-get install python3-pyqt4; fi
- pip install -r requirements-test.txt
- pip install .
- pip install coveralls
script:
- xauth add :0 . `mcookie`
- cd tests
- TESTS="easy test_scrot.py test_imagemagick.py"
- if [ "$TRAVIS_PYTHON_VERSION" == "2.7_with_system_site_packages" ]; then TESTS="$TESTS test_pyqt.py test_wx.py test_pygtk.py"; fi
- if [ "$TRAVIS_PYTHON_VERSION" == "3.2_with_system_site_packages" ]; then TESTS="$TESTS test_pyqt.py"; fi
- nosetests -v --with-coverage --cover-package=pyscreenshot $TESTS
after_success:
- coveralls