forked from Borda/BIRL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
83 lines (71 loc) · 2.18 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
# vim ft=yaml
# After changing this file, check it on:
# http://yaml-online-parser.appspot.com/
# See doc/travis_notes.txt for some guidelines
# this file is *not* meant to cover or endorse the use of travis, but rather to
# help confirm pull requests to this project.
env:
global:
- DISPLAY=""
language: python
matrix:
include:
- os: osx
osx_image: xcode9.4
language: generic
env: TOXENV=py36
addons:
homebrew:
# update: true
packages: python3.6
before_install:
# - brew update && brew install git-lfs
- pip3 install virtualenv
- virtualenv -p python3 ~/venv
- source ~/venv/bin/activate
#before_script:
# - git lfs install
# - git lfs pull
- os: linux
python: 2.7
dist: xenial # Ubuntu 16.04
env: TOXENV=py27
- os: linux
python: 3.5
dist: xenial # Ubuntu 16.04
env: TOXENV=py35
- os: linux
python: 3.6
dist: bionic # Ubuntu 18.04
env: TOXENV=py36
- os: linux
python: 3.7
dist: bionic # Ubuntu 18.04
env: TOXENV=py37
# See http://docs.travis-ci.com/user/caching/#pip-cache
cache: pip
before_install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew install openslide ;
else
sudo apt-get install openslide-tools ;
fi
install:
- pip install -r requirements.txt
- pip install -r ./tests/requirements.txt
- pip --version ; pip list
script:
# integration
- tox -v --sitepackages
# sample run
- mkdir results && touch configs/sample_config.yaml
- python bm_experiments/bm_comp_perform.py -o ./results -n 1
- python birl/bm_template.py -t ./data_images/pairs-imgs-lnds_mix.csv -o ./results --visual --unique -cfg configs/sample_config.yaml
- rm ./data_images/*_/*/*_HE.csv # remove target landmarks from histol. tissue
- python birl/bm_template.py -t ./data_images/pairs-imgs-lnds_histol.csv -d ./data_images -o ./results --preprocessing matching-rgb gray -cfg configs/sample_config.yaml
- python bm_experiments/evaluate_experiment.py -d ./data_images -e ./results/BmTemplate --visual
after_success:
- coverage report
- codecov
notifications:
email: false