forked from ponty/pyscreenshot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
97 lines (81 loc) · 2.89 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
language: python
dist: trusty
python:
- "2.7"
- "3.6"
env: DISTR_PY="general"
matrix:
include:
- name: "2.7_trusty_with_system"
python: "2.7_with_system_site_packages"
dist: trusty
env: DISTR_PY="trusty 2"
- name: "2.7_xenial_with_system"
python: "2.7_with_system_site_packages"
dist: xenial
env: DISTR_PY="xenial 2"
- name: "3.5_xenial_with_system"
python: "3.5_with_system_site_packages"
dist: xenial
env: DISTR_PY="xenial 3"
- name: "3.6_bionic_with_system"
python: "3.6_with_system_site_packages"
dist: bionic
env: DISTR_PY="bionic 3" PIPINST="pyside2"
- name: 3.7_xenial
python: 3.7
dist: xenial
- name: 3.8_xenial
python: 3.8
dist: xenial
- name: 2.7_bionic
python: 2.7
dist: bionic
- name: 3.7_bionic
python: 3.7
dist: bionic
- name: 3.8_bionic
python: 3.8
dist: bionic
- name: "Python 3.7 on macOS"
os: osx
osx_image: xcode11.2 # Python 3.7.4 running on macOS 10.14.4
language: shell # 'language: python' is an error on Travis CI macOS
env: PATH=/Users/travis/Library/Python/3.7/bin:$PATH USER=--user PIPINST="qtpy wxpython pyobjc-framework-Quartz pyobjc-framework-LaunchServices"
- name: "Python 3.8 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python --version 3.8
- python -m pip install --upgrade pip
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
# python: "2.7_with_system_site_packages" on bionic doesn't exist
addons:
apt:
packages:
- xvfb
- scrot
- imagemagick
homebrew:
packages:
- imagemagick
- wxmac
- pyqt
- pyside
install:
- if [ ${TRAVIS_OS_NAME} == "linux" ]; then sudo apt-get install --no-install-recommends -y xvfb $(./tests/packages.sh ${TRAVIS_DIST} ${TRAVIS_PYTHON_VERSION:0:1} ); fi
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then PIP=pip; else PIP=pip3; fi
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then PYTHON=python; else PYTHON=python3; fi
- if [ ${TRAVIS_OS_NAME} == "windows" ]; then PYTHON=python; fi
- $PIP install $USER --upgrade -r requirements-test.txt
- $PIP install $USER --upgrade . ${PIPINST}
script:
- cd tests
- $PYTHON -m pyscreenshot.check.versions
- if [ ${TRAVIS_OS_NAME} == "osx" ]; then $PYTHON -m pyscreenshot.check.speedtest 2> /dev/null; fi
- if [ ${TRAVIS_OS_NAME} == "linux" ]; then $PYTHON -m pyscreenshot.check.speedtest --virtual-display 2> /dev/null; fi
- if [ ${TRAVIS_OS_NAME} == "osx" ]; then ./runmac.sh; fi
- if [ ${TRAVIS_OS_NAME} == "linux" ]; then xvfb-run -s "-br -screen 0 400x500x24" ./runxvfb.sh ${DISTR_PY}; fi
# - if [ ${TRAVIS_OS_NAME} == "windows" ]; then TESTS1="test_pil.py"; fi
after_success:
- coveralls