forked from FABLE-3DXRD/ImageD11
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
18 lines (18 loc) · 840 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
language: python # this works for Linux but is an error on macOS or Windows
jobs:
include:
- name: "Python 3.8.0 on Xenial Linux"
python: 3.8 # this works for Linux but is ignored on macOS or Windows
- name: "Python 3.7.4 on macOS"
os: osx
osx_image: xcode11.2 # Python 3.7.4 running on macOS 10.14.4
language: shell # 'language: python' is an error on Travis CI macOS, could be generic
install:
- python3 -m pip install --upgrade pip setuptools
# fabio could not be installed as a dependency on mac automatically
- python3 -m pip install cython
- python3 -m pip install fabio
- python3 -m pip install --no-use-pep517 --editable .
# 'python3' is a 'command not found' error on Windows but 'py' works on Windows only
script:
- OMP_NUM_THREADS=2 python3 -m pytest