This repository has been archived by the owner on Apr 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path_travis.yml
108 lines (98 loc) · 3.02 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
# This is the history .travis.yml. OS X tests are now run from within
# the main repository.
# Travis does not support Python on OS X directly yet so only set os not language.
os:
- osx
# Cache pip packages. Explicitly name the pip-cache directory since we
# use a custom `install` step which annuls `cache: pip`.
cache:
directories:
- $HOME/Library/Caches/pip
- $HOME/.pip-accel
env:
global:
- PYI_COMMIT=develop
- REPO_DIR=pyinstaller
# shorten logging of pip-accel
- PIP_ACCEL_LOG_FORMAT="%(name)-18s %(levelname)s %(message)s"
matrix:
- VERSION=2.7.11
SOURCE=macpython
DEPENDENCIES=pip
- VERSION=3.3.5
SOURCE=macpython
DEPENDENCIES=pip
- VERSION=3.4.4
SOURCE=macpython
DEPENDENCIES=pip
- VERSION=3.5.1
SOURCE=macpython
DEPENDENCIES=pip
- VERSION=2.7
SOURCE=macports
DEPENDENCIES=pip
- VERSION=3.3
SOURCE=macports
DEPENDENCIES=pip
- VERSION=3.4
SOURCE=macports
DEPENDENCIES=pip
- VERSION=3.5
SOURCE=macports
DEPENDENCIES=pip
- VERSION=2
SOURCE=homebrew
DEPENDENCIES=pip
- VERSION=3
SOURCE=homebrew
DEPENDENCIES=pip
- VERSION=2.7
SOURCE=macports
DEPENDENCIES=macports
- VERSION=3.3
SOURCE=macports
DEPENDENCIES=macports
- VERSION=3.4
SOURCE=macports
DEPENDENCIES=macports
- VERSION=3.5
SOURCE=macports
DEPENDENCIES=macports
- VERSION=2
SOURCE=homebrew
DEPENDENCIES=homebrew
- VERSION=3
SOURCE=homebrew
DEPENDENCIES=homebrew
# Install dependencies.
install:
# Build Python interpreter
- source terryfy/travis_tools.sh
- if [ $SOURCE != homebrew ]; then get_python_environment $SOURCE $VERSION venv; else get_python_environment $SOURCE $VERSION; fi
- if [ $SOURCE = macports ]; then sudo port -p install curl; fi
- source terryfy/test_python_installs.sh
- if [ $SOURCE = macports ]; then export PYTHON_VERSION=`get_py_mm_nodot`; else export PYTHON_VERSION=`get_py_digit`; fi
# Checkout latest PyInstaller.
- cd $TRAVIS_BUILD_DIR
- checkout_commit $REPO_DIR $PYI_COMMIT
# Compile bootloader.
- cd $TRAVIS_BUILD_DIR/$REPO_DIR/bootloader
- $PYTHON_EXE waf distclean all
# Install PyInstaller.
- cd $TRAVIS_BUILD_DIR/$REPO_DIR
- $PIP_CMD install -e .
# Install dependencies for tests. Use pip-accel to cache compiled
# packages and safe recompiling each time.
# Download-progress bars break Travis's log view. Disable them by piping output
# through another program (if output is not a tty, no progress bars)
- ${PIP_CMD} install pip-accel
- export ACCEL_CMD=`dirname $PIP_CMD`/pip-accel
- ${ACCEL_CMD} install -r $TRAVIS_BUILD_DIR/$REPO_DIR/tests/requirements-tools.txt | cat
- source $TRAVIS_BUILD_DIR/utils.sh
- install_dependencies
script:
# Make sure virtualenv is activated.
- source $TRAVIS_BUILD_DIR/venv/bin/activate
# Run tests and speed them up by sending them to multiple CPUs.
- cd $TRAVIS_BUILD_DIR/$REPO_DIR
- py.test -n 5