-
Notifications
You must be signed in to change notification settings - Fork 21
/
.travis.yml
50 lines (47 loc) · 1.16 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
language: node_js
matrix:
fast_finish: true
allow_failures:
- node_js: "5"
node_js:
- "0.10"
- "0.12"
- "4"
- "5"
services:
- couchdb
env:
global:
- NODE_ENV=test
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
before_install:
- travis_retry npm install npm@latest-2 -g
- git clone git://github.com/cozy/cozy-data-system.git
- cd cozy-data-system
- travis_retry npm install forever coffee-script -g
- travis_retry npm install # data-system
- pwd
- NAME=data-system TOKEN=token forever start -o forever-ds.log build/server.js
- ps aux | grep server.js
- sleep 5
- cat forever-ds.log
- sudo netstat -plunt
- curl http://localhost:9101/
- coffee commands.coffee test-install webdav
- cd ..
- export NAME=webdav
- export TOKEN=apptoken
after_install:
- cd node_modules/cozy-jsdav-fork/
- travis_retry npm install
- cd ../..
after_failure:
- cat cozy-data-system/forever-ds.log
- curl -X POST --user proxy:token http://localhost:9101/request/user/all/