-
Notifications
You must be signed in to change notification settings - Fork 89
/
.travis.yml.bak
94 lines (79 loc) · 2.99 KB
/
.travis.yml.bak
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
language: python
matrix:
include:
# - name: 3.6_trusty
# python: 3.6
# dist: trusty
- name: "3.5_xenial_with_system"
python: "3.5_with_system_site_packages"
dist: xenial
- name: 3.7_xenial
python: 3.7
dist: xenial
- name: 3.8_xenial
python: 3.8
dist: xenial
- name: "3.6_bionic_with_system"
python: "3.6_with_system_site_packages"
dist: bionic
env: PIPINST="pyside2"
- name: 3.7_bionic
python: 3.7
dist: bionic
- name: 3.8_bionic
python: 3.8
dist: bionic
- name: "3.8_focal_with_system"
python: "3.8_with_system_site_packages"
dist: focal
- name: 3.9_focal
python: 3.9
dist: focal
- 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 PIPUSER=--user PIPINST="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
# windows has no GUI
addons:
apt:
sources:
# - sourceline: "ppa:jan-simon/pqiv"
- sourceline: "ppa:nilarimogard/webupd8"
packages:
- xvfb
- scrot
- maim
- imagemagick
# - pqiv
- x11-utils
homebrew:
# update: true # https://travis-ci.community/t/macos-build-fails-because-of-homebrew-bundle-unknown-command/7296/10
packages:
- wxmac
- pyqt
- pyside
- pqiv
install:
- if [ ${TRAVIS_OS_NAME} == "linux" ] && [ ${TRAVIS_DIST} != "focal" ]; then sudo add-apt-repository -y ppa:jan-simon/pqiv; fi # error in focal
- if [ ${TRAVIS_OS_NAME} == "linux" ]; then sudo apt-get -q update; fi
- if [ ${TRAVIS_OS_NAME} == "linux" ]; then sudo apt-get install --no-install-recommends -y --allow-unauthenticated pqiv $(./tests/packages.sh ${TRAVIS_DIST} ); fi
- PYTHON=python3
- if [ ${TRAVIS_OS_NAME} == "windows" ]; then PYTHON=python; fi
- if [ ${TRAVIS_OS_NAME} == "osx" ]; then PYTHON=/usr/local/opt/python/libexec/bin/python; fi
- $PYTHON -m pip install $PIPUSER --upgrade -r requirements-test.txt
- $PYTHON -m pip install $PIPUSER --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 $PYTHON -m pytest -v . ; fi
- if [ ${TRAVIS_OS_NAME} == "linux" ]; then xvfb-run -s "-br -screen 0 900x800x24" $PYTHON -m pytest -v . ; fi