forked from hipache/hipache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (43 loc) · 1.31 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
node_js:
# XXX right now, segfaulting on the 500MB upload
# - "0.11"
- "0.10"
services:
- redis-server
env:
- NO_MEMCACHED=true
before_install:
- sudo apt-get update
install:
- npm install -g gulp
- npm install
# Pythonic tests require
- sudo apt-get install python-pip
- (cd test/functional && sudo pip install -r requirements.txt)
# Zookeeper install
- pushd $HOME
- curl -C - http://apache.websitebeheerjd.nl/zookeeper/stable/zookeeper-3.4.6.tar.gz | tar -zx
- mv $HOME/zookeeper-3.4.6 $HOME/zookeeper
- chmod a+x $HOME/zookeeper/bin/zkServer.sh
# etcd install
- curl -L -C - https://github.com/coreos/etcd/releases/download/v0.4.6/etcd-v0.4.6-linux-amd64.tar.gz | tar -zx
- mv $HOME/etcd-v0.4.6-linux-amd64 $HOME/etcd
- chmod a+x $HOME/etcd/{etcd,etcdctl}
- popd
before_script:
- export PATH="$HOME/zookeeper/bin:$HOME/etcd:$PATH"
# Hinting - XXX should fail!
- npm run-script hint
script:
- npm test
# Running pythonic functional tests
- ./bin/hipache -c config/config_test.json &
# Wait for Hipache...
- sleep 5
- (cd test/functional && python -m unittest discover)
# A bit "brutal" but still, useful...
- killall node
after_script:
# Coveralls report
- npm run coveralls