forked from Countly/countly-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (32 loc) · 1 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
language: nodejs
node_js: "8"
services:
- mongodb
env:
global:
- secure: ZXdUMP+8Nk9Kd5nX31D/DIB1t2xlJd+T4W7umWjwpy+KPA9d1W1OhUG6V2Gpv3PsJf+UtMosgZsywcLFVG4l/WcjAhs3c9pegW5ZRYAEfVjkk7aHhWQGvj5DID8iAAxs91Mm8LwJ43o68x+XN6746zArPqcVzQltDunJ0G3gfh8=
branches:
except:
- gh-pages
before_install:
install: sudo bash ./bin/countly.install_travis.sh
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
- sleep 10
script: sudo 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
- bash bin/scripts/deploy.sh
- 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=