forked from shippableSamples/sample_node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shippable.yml
36 lines (29 loc) · 816 Bytes
/
shippable.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
# Language setting
language: node_js
build_image: drydock/u12nod:prod
# Version number
node_js:
- 0.12
# The path for Xunit to output test reports
env:
- XUNIT_FILE=shippable/testresults/result.xml
install:
- source ~/.nvm/nvm.sh && nvm install 0.12
- node --version
- npm install
# - . installMongo.sh
# - cat /etc/mongod.conf
# - sudo mongod --smallfiles &
# - sleep 15
# - mongo --eval 'db.collection.find()'
# Create directories for test and coverage reports
before_script:
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
# Running the tests with grunt
script:
- grunt
# Tell istanbul to generate a coverage report
after_script:
- ./node_modules/.bin/istanbul cover grunt -- -u tdd
- ./node_modules/.bin/istanbul report cobertura --dir shippable/codecoverage/