This repository has been archived by the owner on Jan 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
54 lines (44 loc) · 1.65 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
language: cpp
sudo: false
compiler:
- gcc
before_install:
- pushd "${HOME}"
- curl "https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.1.tgz" | gunzip -c | tar x
- cd mongodb-*/bin && export PATH="${PWD}:${PATH}"
- popd
- mkdir /tmp/db
- mongod --dbpath=/tmp/db >/dev/null 2>/dev/null &
- mongod --version
- pushd "${HOME}"
- curl -L "http://www.cmake.org/files/v3.2/cmake-3.2.1-Linux-x86_64.tar.gz" | gunzip -c | tar x
- cd cmake-*/bin && export PATH="${PWD}:${PATH}"
- popd
- cmake --version
- npm install -g npm@next
- npm --version
- git submodule update --init --recursive
- git submodule update --recursive
- cd geojs
- npm install
- grunt library
- cd ..
install:
- curl 'https://raw.githubusercontent.com/draperlaboratory/user-ale/master/userale.js' -o client/optional/js/userale.js
- curl 'https://raw.githubusercontent.com/draperlaboratory/user-ale/master/userale-worker.js' -o client/optional/static/userale-worker.js
- pip install --user -r requirements.txt -r requirements-dev.txt
- export PATH=$PATH:~/.local/bin
- girder-install web
- PIP_USER=yes girder-install plugin
- npm install
script:
# Run ctest
- mkdir _build
- cd _build
- cmake ..
- ctest -VV -j 3
- if [ -f test_failed ] ; then false ; fi
- cd ..
# Make sure we can query a REST end point
- cd server
- python -c "import cherrypy,sys,urllib,main as geoapp;app=geoapp.GeoApp();app.start(False);test = 'apiVersion' in urllib.urlopen('http://localhost:8001/api/v1/system/version').read();cherrypy.engine.exit();sys.exit(0 if test else 1)"