forked from pyinstaller/pyinstaller
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
161 lines (137 loc) · 4.37 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
language: python
branches:
except:
- /pyup\/.*/
dist: bionic
# Cache pip packages. Explicitly name the pip-cache directory since we
# use a custom `install` step which annuls `cache: pip`.
cache:
directories:
- $HOME/.cache/pip
- $HOME/py37
os:
- linux
services:
# PyQt5 tests require a GUI. See https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-services-xvfb.
- xvfb
env:
global:
# Obtain diagnostic information from Qt about each plugin it tries to load.
- QT_DEBUG_PLUGINS=1
jobs:
fast_finish: true
include:
- &test-pyinstaller
stage: Test - PyInstaller
python: 3.7
before_install:
# Download the appimagetool binary for AppImage-specific tests
- >
wget
https://github.com/AppImage/AppImageKit/releases/download/12/appimagetool-x86_64.AppImage
-O $HOME/appimagetool-x86_64.AppImage
- chmod a+x $HOME/appimagetool-x86_64.AppImage
script:
# -n 3
# Run tests and speed them up by sending them to multiple CPUs.
#
# --maxfail 3
# End tests after 3 failures.
#
# --durations 10
# Print the 10 longest tests; see
# https://docs.pytest.org/en/latest/usage.html#profiling-test-execution-duration
- >
pytest -n 3 --maxfail 3 --durations 10
tests/unit tests/functional
--ignore tests/functional/test_libraries.py
- &test-libraries
stage: Test - Libraries
python: 3.7
before_install:
# Install OpenSSL 1.1. This fixes dynamic linking problems when PyQt5.13 tries
# to link with OpenSSL 1.1 -- on Ubuntu 16 (xenial), the older OpenSSL
# produces errors like ``qt.network.ssl: QSslSocket: cannot resolve
# OPENSSL_init_ssl``.
- sudo add-apt-repository ppa:carsten-uppenbrink-net/openssl -y
- sudo apt-get update -q
- sudo apt install openssl -q
script:
- >
pytest -n 3 --maxfail 3 --durations 10
tests/functional/test_libraries.py
# The ``run_tests`` script is invoked with the ``-c`` option to
# specify a ``pytest.ini``, rather than allowing pytest to find
# something unexpected in the filesystem (it searches from the root
# dir all the way to the top of the filesystem per
# https://docs.pytest.org/en/latest/customize.html).
- python -m PyInstaller.utils.run_tests -c PyInstaller/utils/pytest.ini --include_only=pyi_hooksample.
- <<: *test-pyinstaller
python: 3.5
- <<: *test-libraries
python: 3.5
- <<: *test-pyinstaller
python: 3.6
- <<: *test-libraries
python: 3.6
- <<: *test-pyinstaller
python: 3.8
- <<: *test-libraries
python: 3.8
- <<: *test-pyinstaller
python: 3.9
- <<: *test-libraries
python: 3.9
- <<: *test-pyinstaller
python: nightly
- <<: *test-libraries
python: nightly
allow_failures:
# Just tests how PyInstaller performs with upcoming Python
- python: "nightly"
addons:
# Python packages should be installed by "pip" via the "test/requirements-library.txt" specification.
apt:
packages:
# lxml dependencies.
- libxml2-dev
- libxslt1-dev
# pyttsx dependencies.
- libespeak1
# SciPy dependencies.
- gfortran
- libatlas-base-dev
# PyQt5 dependencies.
- libxkbcommon-x11-0
- libxcb-icccm4
- libxcb-image0
- libxcb-keysyms1
- libxcb1
- libxcb-randr0
- libxcb-render-util0
- libxcb-xinerama0
install:
# Update pip.
- python -m pip install -U pip setuptools wheel | cat
# Install dependencies for tests.
- pip install --progress-bar=off -U -r tests/requirements-tools.txt -r tests/requirements-libraries.txt
# Install PyInstaller Hook Sample, to ensure that tests declared in
# entry-points are discovered.
- pip install https://github.com/pyinstaller/hooksample/archive/v4.0rc1.zip
# Compile bootloader
- cd bootloader
- python waf distclean all
- cd ..
# Install PyInstaller.
- pip install --progress-bar=off -e .
# Make sure the help options print.
- python -m pyinstaller -h
script:
- true
notifications:
irc:
channels:
- "irc.freenode.org#pyinstaller"
use_notice: true
# skip_join: true would require +n mode *not to be set on #pyinstaller
skip_join: false