forked from Countly/countly-server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
38 lines (38 loc) · 1.11 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
language: nodejs
node_js: "6"
services:
- mongodb
env:
- CXX=g++-4.8
branches:
except:
- gh-pages
env:
global:
- secure: ZXdUMP+8Nk9Kd5nX31D/DIB1t2xlJd+T4W7umWjwpy+KPA9d1W1OhUG6V2Gpv3PsJf+UtMosgZsywcLFVG4l/WcjAhs3c9pegW5ZRYAEfVjkk7aHhWQGvj5DID8iAAxs91Mm8LwJ43o68x+XN6746zArPqcVzQltDunJ0G3gfh8=
addons:
apt:
sources:
- mongodb-3.2-precise
packages:
- mongodb-org-server
before_install: sudo bash ./bin/countly.install_travis.sh
install: sudo npm install
before_script:
- nodejs --version
- mongod --version
- cat /var/log/mongodb/mongod.log
- until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done
script: npm test
after_script:
- cat log/countly-api.log
- cat log/countly-dashboard.log
- cat /var/log/mongodb/mongod.log
after_success:
- cd $TRAVIS_BUILD_DIR
- chmod +x bin/scripts/generateDocs.sh
- bash bin/scripts/generateDocs.sh
notifications:
email: [email protected]
slack:
secure: SplZFh0l8fP/FuQyoFXLE4k358ERYMVaK5nxJhrGbiG08wtTrtJi0qVrEUjfNed4crWtFpvLML0Lb1P+BAykWeEWFz5rjSZ1y0mu+Uqw89D5bk7kUguk+ZF/HOD4bsls2oMRpbK3M26/1VMd6LSg/pJIQd/o8CWSnhozMemB9Pc=