forked from pyinstaller/pyinstaller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
92 lines (79 loc) · 2.32 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
language: python
# Use the new container-based Travis infrastructure.
sudo: false
# 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
# Try OS X.
os:
- linux
#- osx
env:
# - PYCRYPTO_VERSION=2.4.1
# - PYCRYPTO_VERSION=2.6.1
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "nightly"
matrix:
allow_failures:
# Just tests how PyInstaller performs with upcoming Python 3.6
- python: "nightly"
# Ignore failures from OS X.
- os: osx
addons:
# Ubuntu 12.04 (LTS) packages installed into this Travis-CI container. Since
# Ubuntu 12.04 provides *NO* Python 3 packages prefixed by "python3-", only
# Python 2.7 packages prefixed by "python-" are installable. Installing only
# Python 2.7 packages would be useless, however! Python packages should thus
# be installed by "pip" via the "test/requirements-library.txt" specification.
#
# Travis-CI intends to add support for Ubuntu 14.04 (LTS) at some future date.
# To track progress on this long-standing issue, see:
#
# https://github.com/travis-ci/travis-ci/issues/2046
apt:
packages:
# lxml dependencies.
- libxml2-dev
- libxslt1-dev
# pyttsx dependencies.
- libespeak1
# SciPy dependencies.
- gfortran
- libatlas-base-dev
before_install:
# Skip build if the commit message contains [skip travis] or [travis skip]
- >
echo "$TRAVIS_COMMIT_MESSAGE"
| grep -E '\[(skip travis|travis skip)\]'
&& echo "[skip travis] has been found, exiting."
&& exit 0 || true
# Compile bootloader
- cd bootloader
- python waf distclean all
- cd ..
install:
# Update pip.
- python -m pip install -U pip setuptools wheel
# Install PyInstaller.
- pip install -e .
# Install dependencies for tests.
- pip install -U -r tests/requirements-tools.txt
- pip install -U -r tests/requirements-libraries.txt
script:
# Run tests and speed them up by sending them to multiple CPUs.
# Run unitttest first.
- py.test -n 3 --maxfail 3 tests/unit/ tests/
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