forked from FHenry/speedealing
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
55 lines (45 loc) · 1.43 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
51
52
53
54
55
# This script is used by Travis CI to run automatically Continuous test integration
# from GitHub repository.
# For syntax, see http://docs.travis-ci.com/user/languages/javascript-with-nodejs/
notifications:
email:
recipients:
on_success: never # [always|never|change] default: change
on_failure: change # [always|never|change] default: always
services:
- mongodb # will start mongodb
# This will tell travis to run nodejs
language: node_js
node_js:
- "0.10"
env:
- NODE_ENV=development
before_install:
- echo Start before install
# - sudo apt-get update -qq
# - sudo apt-get install -qq mutt
# - sudo apt-get install -qq texlive texlive-latex-extra texlive-fonts-extra
install:
- echo Start install
- cd nodejs
- npm install
- npm install -g bower
- npm install -g nodemon
- npm install -g jscodesniffer
# - npm install -g latex
# - npm install -g pdflatex
- bower install --allow-root --config.interactive=false
before_script:
- echo Start before script
- sleep 15
- mongo demo --eval 'db.addUser("travis", "test");'
- mongorestore --port 27017 dump/demo/ --db demo
script:
- echo Start script
- npm test
after_failure:
- cat /home/travis/build/symeos/speedealing/nodejs/jscsReport.txt
# - echo "Travis jscs failure" | mutt -a /home/travis/build/symeos/speedealing/nodejs/jscsReport.txt -s "Travis jscs failure" -- [email protected]
after_script:
- echo End travis