forked from vasole/pymca
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
71 lines (54 loc) · 1.47 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
language: python
matrix:
include:
- python: 2.7
os: linux
env: BUILD_COMMAND=sdist
- python: 3.6
os: linux
env: BUILD_COMMAND=sdist
- language: generic
os: osx
env:
- BUILD_COMMAND=bdist_wheel
- PYTHON_VERSION=2
- language: generic
os: osx
env:
- BUILD_COMMAND=bdist_wheel
- PYTHON_VERSION=3
cache:
apt: true
before_install:
# On MacOS: install python3 if needed
- source ./ci/travis_osx.sh
install:
# Upgrade distribution modules
- python -m pip install --upgrade pip
- pip install --upgrade setuptools
# Install build dependencies
- pip install --upgrade wheel
- pip install --upgrade numpy
# 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
- pip install matplotlib
- pip install fisx
- pip install h5py
- pip install silx
# Install from source package
- pip install --pre --find-links dist/ --no-cache-dir --no-index PyMca5 $PIP_INSTALL_EXTRA_ARGS
# Print Python info
- python ci/info_platform.py
- pip list
# Run the tests
- cd ..
- python -m PyMca5.tests.TestAll