-
-
Notifications
You must be signed in to change notification settings - Fork 53
/
.travis.yml
74 lines (66 loc) · 2.8 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
# Wire up travis
language: python # this works for Linux but is an error on macOS or Windows
jobs:
include:
- name: "Python 3.6 on Xenial Linux"
python: 3.6 # this works for Linux but is ignored on macOS or Windows
- name: "Python 3.7 on Xenial Linux"
python: 3.7 # this works for Linux but is ignored on macOS or Windows
- name: "Python 3.6.5 on macOS"
os: osx
osx_image: xcode9.4 # Python 3.7.4 running on macOS 10.14.4
language: shell # 'language: python' is an error on Travis CI macOS
before_install:
- brew update-reset
- source ~/.bash_profile
- brew update
- brew install openslide
- echo 'export PATH="/usr/local/Frameworks/Python.framework/Versions/Current/bin:$PATH"' >> /Users/travis/.bash_profile
- echo $PATH
- 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
before_install:
- brew install openslide
- echo 'export PATH="/usr/local/Frameworks/Python.framework/Versions/Current/bin:$PATH"' >> /Users/travis/.bash_profile
- echo $PATH
- name: "Python 3.6.8 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python --version 3.6.8
- python -m pip install --upgrade pip
- wget https://github.com/openslide/openslide-winbuild/releases/download/v20171122/openslide-win64-20171122.zip -P /c/downloads
- 7z e /c/downloads/openslide-win64-20171122.zip -aoa
env: PATH=/c/Python36:/c/Python36/Scripts:/c/downloads/openslide-win64-20171122/bin:$PATH
- name: "Python 3.7 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python --version 3.7
- python -m pip install --upgrade pip
- wget https://github.com/openslide/openslide-winbuild/releases/download/v20171122/openslide-win64-20171122.zip -P /c/downloads
- 7z e /c/downloads/openslide-win64-20171122.zip -aoa
env: PATH=/c/Python37:/c/Python37/Scripts:/c/downloads/openslide-win64-20171122/bin:$PATH
# command to install dependencies
install:
- pip3 install -e .[testing]
- pip3 install flake8
- pip3 install pooch
services:
- xvfb
before_script:
- export DISPLAY=:99.0
- sleep 3 # give xvfb some time to start
# command to run tests
script:
- flake8 .
- pytest --cov=histolab
after_success:
- coveralls
notifications:
slack: mpba:fBrjUWlUSa3XKeCA8zFsTFu2
addons:
apt:
packages: openslide-tools