forked from DigitalSlideArchive/HistomicsTK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
94 lines (78 loc) · 3.45 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
language: python
python:
- "2.7"
cache:
directories:
- $HOME/.cache
sudo: required
services:
- docker
compiler:
- gcc
addons:
apt:
packages:
# Pillow dependencies (see
# https://pillow.readthedocs.org/en/latest/installation.html)
- libtiff4-dev
- libjpeg8-dev
- zlib1g-dev
- libfreetype6-dev
- liblcms2-dev
- libwebp-dev
# vips
- libvips-tools
# openslide
- libopenjpeg-dev
# pandoc for displaying jupyter notebook examples on ReadTheDocs
- pandoc
- pandoc-citeproc
before_install:
- CACHE="$HOME/.cache" OPENSLIDE_VERSION="3.4.1" source .install-openslide.sh
- GIRDER_VERSION=c29e4db8fadf5b97f5fcd488e15353b09a9fd70f
- GIRDER_WORKER_VERSION=a572e2cd74ae30777f31999d5a136747190ddcb8
- LARGE_IMAGE_VERSION=8c9b9b7e7af0e6dc18a79d991e97ca7fed690a25
- main_path=$PWD
- build_path=$PWD/build
- mkdir -p $build_path
- girder_path=$build_path/girder
- rm -fr $girder_path
- git clone https://github.com/girder/girder.git $girder_path && git -C $girder_path checkout $GIRDER_VERSION
- ln -sf $main_path $girder_path/plugins/
- ls -l $girder_path/plugins
- girder_worker_path=$girder_path/plugins/girder_worker
- git clone https://github.com/girder/girder_worker.git $girder_worker_path && git -C $girder_worker_path checkout $GIRDER_WORKER_VERSION
- cp $PWD/plugin_tests/data/girder_worker.cfg $girder_worker_path/girder_worker/worker.local.cfg
- pip install -U -r $girder_worker_path/requirements.txt -r $girder_worker_path/girder_worker/plugins/girder_io/requirements.txt
- large_image_path=$girder_path/plugins/large_image
- git clone https://github.com/DigitalSlideArchive/large_image.git $large_image_path && git -C $large_image_path checkout $LARGE_IMAGE_VERSION
- export MONGO_VERSION=2.6.11
- export PY_COVG="ON"
- CACHE=$HOME/.cache source $girder_path/scripts/install_mongo.sh
- mkdir /tmp/db
- mongod --dbpath=/tmp/db >/dev/null 2>/dev/null &
- mongod --version
- CACHE=$HOME/.cache CMAKE_VERSION=3.1.0 CMAKE_SHORT_VERSION=3.1 source $girder_path/scripts/install_cmake.sh
- cmake --version
- mkdir -p $HOME/.cache/node_modules || true
- ln -sf $HOME/.cache/node_modules .
- npm install -g npm
- npm --version
- npm prune
- wget -O $build_path/install_miniconda.sh https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh
- bash $build_path/install_miniconda.sh -b -p $build_path/miniconda
- source $build_path/miniconda/bin/activate $build_path/miniconda
- conda update --yes --all
- conda config --add channels https://conda.binstar.org/cdeepakroy
install:
# https://github.com/pypa/pip/issues/2751
- conda install --yes libgfortran==1.0 setuptools==19.4 --file $main_path/requirements_c_conda.txt
- pip install -r $main_path/requirements.txt -r $main_path/requirements_c.txt
- cd $girder_path
- pip install -U -r requirements.txt -r requirements-dev.txt -r $main_path/requirements.txt -r $large_image_path/requirements.txt setuptools==19.4
- npm install
script:
- mkdir -p $build_path/girder_testing_build
- cd $build_path/girder_testing_build
- cmake -DPYTHON_COVERAGE:BOOL=${PY_COVG} -DPYTHON_VERSION:STRING=${TRAVIS_PYTHON_VERSION} $girder_path
- JASMINE_TIMEOUT=15000 ctest -VV -R HistomicsTK