-
Notifications
You must be signed in to change notification settings - Fork 56
/
.travis.yml
151 lines (128 loc) · 3.63 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
dist: focal
language: python
matrix:
include:
#- python: 2.7
# os: linux
# env:
# - BUILD_COMMAND=sdist
# - QT_BINDING=PySide2
#- python: 3.8
# os: linux
# env:
# - BUILD_COMMAND=bdist_wheel
# - QT_BINDING=PyQt5
- python: 3.8
os: linux
arch: ppc64le
env:
- BUILD_COMMAND=bdist_wheel
- QT_BINDING=PyQt5
#- python: 3.6
# os: linux
# env:
# - BUILD_COMMAND=sdist
# - QT_BINDING=PySide2
# No particular need to test Python 2 on OSX
#- language: generic
# os: osx
# env:
# - BUILD_COMMAND=bdist_wheel
# - PYTHON_VERSION=2
# - QT_BINDING=PySide2
#- language: generic
# os: osx
# env:
# - BUILD_COMMAND=bdist_wheel
# - PYTHON_VERSION=3
# - QT_BINDING=PyQt5
branches:
only:
- master
cache:
apt: true
addons:
apt:
packages:
- libgl1-mesa-dev # For OpenGL headers
- libegl1-mesa # Required by Qt xcb platform plugin
- libxkbcommon-x11-0 # needed for Qt plugins
- libxkbcommon0
- libxkbcommon-dev
- libxcb-icccm4
- libxcb-image0
- libxcb-shm0
- libxcb-keysyms1
- libxcb-randr0
- libxcb-render-util0
- libxcb-render0
- libxcb-shape0
- libxcb-sync1
- libxcb-xfixes0
- libxcb-xinerama0
- libxcb-xkb1
- libxcb1
- python3-pyqt5 # no wheel available
services:
- xvfb
before_install:
# On MacOS: install python3 if needed
- source ./ci/travis_osx.sh
# X server
- if [ "$TRAVIS_OS_NAME" == "linux" ];
then
export DISPLAY=:99.0;
fi
install:
# Upgrade distribution modules
- python -m pip install --upgrade pip
- pip install --upgrade setuptools
# Install build dependencies
- pip install --upgrade wheel
- if [ "$TRAVIS_CPU_ARCH" == "ppc64le" ];
then
pip install numpy --pre --trusted-host www.silx.org --find-links http://www.silx.org/pub/wheelhouse/;
else
pip install --upgrade numpy;
fi
# Print Python info
- python ./ci/info_platform.py
- pip list
# Generate source package or wheel
- python setup.py $BUILD_COMMAND
- ls dist
script:
# Upgrade distribution modules
- pip install --upgrade setuptools
- pip install --upgrade pip
# Dependencies
- if [ "$TRAVIS_CPU_ARCH" == "ppc64le" ];
then
pip install matplotlib==3.7.1 --pre --trusted-host www.silx.org --find-links http://www.silx.org/pub/wheelhouse/;
else
pip install matplotlib;
fi
- if [ "$TRAVIS_CPU_ARCH" == "ppc64le" ];
then
pip install h5py==3.8.0 --pre --trusted-host www.silx.org --find-links http://www.silx.org/pub/wheelhouse/;
else
pip install h5py;
fi
#
#- pip install silx --pre --trusted-host www.silx.org --find-links http://www.silx.org/pub/wheelhouse/;
#- if [[ ! -z $QT_BINDING ]];
# then
# pip install $QT_BINDING;
# fi
# Install from source package
- |
for filename in dist/PyMca5*.*; do
echo "\nInstall $filename"
pip install --pre $filename $PIP_INSTALL_EXTRA_ARGS
done
# Print Python info
- python ci/info_platform.py
- pip list
# Run the tests
- cd ..
- python -m PyMca5.tests.TestAll