-
Notifications
You must be signed in to change notification settings - Fork 42
/
.travis.yml
41 lines (40 loc) · 1.07 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
language: node_js
node_js:
- 6
- 7
- 8
- 9
os:
- linux
- centos
- macosx
- windows
env:
- NODE_ENV=nightwatch
before_script:
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.6.3.tgz -O /tmp/mongodb.tgz
- tar -xvf /tmp/mongodb.tgz
- mkdir /tmp/data
- ${PWD}/mongodb-linux-x86_64-3.6.3/bin/mongod --dbpath /tmp/data &
- until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done
- npm i -g nsp
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- npm install selenium-standalone@latest -g
- selenium-standalone install
- 'selenium-standalone start 2>&1 &'
- sleep 3
script:
- npm test
after_script:
- nsp check
notifications:
slack: meanstackjs:YtrF35Q7mPqPW5y6NHyDNvkh
webhooks:
urls:
- https://webhooks.gitter.im/e/2f8affb0a488ea5f5b7c
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always
sudo: false