forked from Kitware/flow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
70 lines (58 loc) · 1.68 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
language: python
python:
- "2.7"
sudo: true
addons:
apt:
packages:
- gfortran
- libcurl4-openssl-dev
- rabbitmq-server
services: mongodb
compiler:
- gcc
before_install:
- vmstat 1 1
- "mongo --eval 'db.runCommand({setParameter: 1, textSearchEnabled: true})' admin" # not sure why this is necessary
# Setup/install Girder
- cd $HOME
- git clone https://github.com/girder/girder.git
- cd girder
- pip install -r requirements.txt -r requirements-dev.txt
- nvm install v2.3.3
- npm install -g npm
- node --version
- npm --version
- npm prune
- npm install
# Setup/install Girder Worker
- cd $HOME/girder/plugins
- git clone https://github.com/girder/girder_worker.git
- cd $HOME/girder/plugins/girder_worker
- pip install -r requirements.txt
- pip install -e .
- echo "$TRAVIS_BUILD_DIR"
- pwd
- cp -r $TRAVIS_BUILD_DIR $HOME/girder/plugins
- ls -al $HOME/girder/plugins
- ls -al $HOME/girder/plugins/flow
# Need newer CMake because of external data
- cd $HOME
- curl -L "http://cmake.org/files/v3.1/cmake-3.1.0-Linux-x86_64.tar.gz" | gunzip -c | tar x
- cd cmake-*/bin && export PATH="${PWD}:${PATH}"
- cmake --version
install:
# Rerun npm install because of new plugins
- cd $HOME/girder
- npm install
# Start RMQ
- sudo service rabbitmq-server start
# Start girder_worker
- python -m girder_worker &
script:
- cd $HOME
- rm -rf build
- mkdir build
- cd build
- cmake -DRUN_CORE_TESTS:BOOL=OFF -DTEST_PLUGINS:STRING=flow -DPYTHON_COVERAGE:BOOL=OFF -DJS_COVERAGE_MINIMUM_PASS:STRING=30 $HOME/girder && make
- ctest -V