forked from DigitalSlideArchive/digital_slide_archive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
71 lines (56 loc) · 2.1 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
python:
- "2.7"
# - "3.4"
cache:
directories:
- $HOME/.cache
sudo: false
compiler:
- gcc
before_install:
- GIRDER_VERSION=2.x-maintenance
- LARGE_IMAGE_VERSION=master
- 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
- 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
# From python core, not sure if strictly necessary.
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "3" ]; then export PY3="true"; else export PY2="true"; fi
- export MONGO_VERSION=3.2.8
- 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
- mkdir -p $HOME/.cache/node_modules || true
- ln -sf $HOME/.cache/node_modules .
- unset PREFIX
- nvm install v6
- npm install -g npm
- npm --version
# - npm prune
- CACHE=$HOME/.cache CMAKE_VERSION=3.1.0 CMAKE_SHORT_VERSION=3.1 source $girder_path/scripts/install_cmake.sh
- cmake --version
- pip install -U pip virtualenv
install:
- cd $girder_path
- pip install -r requirements-dev.txt -r $main_path/requirements.txt -e .[plugins]
- cd $large_image_path
- pip install -U .
- cd $girder_path
- npm prune
- npm install
- girder-install web --plugins=digital_slide_archive,large_image,worker,jobs --dev
script:
- mkdir -p $build_path/girder_testing_build
- cd $build_path/girder_testing_build
- cmake -DRUN_CORE_TESTS:BOOL=OFF -DBUILD_JAVASCRIPT_TESTS:BOOL=OFF -DTEST_PLUGINS:STRING=digital_slide_archive -DPYTHON_VERSION:STRING=${TRAVIS_PYTHON_VERSION} $girder_path
- make
- JASMINE_TIMEOUT=15000 ctest -VV