forked from shippableSamples/sample_node_mongo
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathshippable.yml
More file actions
33 lines (26 loc) · 1.02 KB
/
shippable.yml
File metadata and controls
33 lines (26 loc) · 1.02 KB
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
# Language setting
language: node_js
# Version number
node_js:
- 0.10.25
# Mongo binds to 127.0.0.1 by default
services:
- mongodb
# The path for Xunit to output test reports
env:
global:
- secure: egE2Ribjr/YrM3b/gPksfgLNotIeansK5dvQOr7Y38YAhF4EU2H7GpMDhdVYQzFT4xL5wblHXQcVnKdEoP0MVB+m/fNGGFLifV3jvvD4jEWBOtEvuOfu6ZcAafCQjMLX2hac0YTTpfbwoxMMPstM0BP0Z0x1eTEspv5lOuB4QbFY8AekWI5Ie6EPub166oZiU/rr3zQCrH/X/tOs/nJ3SV1x1DUKi3FeY4ol94XQqjI23gUcdJ9cNDW898PUoe/akPDaNsgJRrxjZ+CQ2qzEOGrJZtLYNnIGV8ozL5bGJVXfxwk3wXf8JXdfNwTVMz1niRIN03foUGge1VM8cMyXqg==
- XUNIT_FILE=shippable/testresults/result.xml
# Create directories for test and coverage reports
before_script:
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
# Running the tests with grunt
script:
- grunt
- echo $key1
# Tell istanbul to generate a coverage report
after_script:
- mongo test --eval "db.dropDatabase()"
- ./node_modules/.bin/istanbul cover grunt -- -u tdd
- ./node_modules/.bin/istanbul report cobertura --dir shippable/codecoverage/