-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathshippable.yml
More file actions
28 lines (24 loc) · 895 Bytes
/
shippable.yml
File metadata and controls
28 lines (24 loc) · 895 Bytes
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
language: node_js
# Services used by app
services:
- postgres
node_js:
- 0.10.25
# For xunit-file module to put results in shippable folder
env:
- XUNIT_FILE=shippable/testresults/result.xml
# Postgres binds to 127.0.0.1 by default and is started on boot. Default username is "postgres" with no password
# Create a DB as part of before script to use it
# Make folders for the reports, and create the SQL db
build:
ci:
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
- psql -c 'CREATE DATABASE app_test;' -U postgres
- npm install
- npm test
# Generate coverage report with istanbul
post_ci:
# - psql -c 'create database if not exists test;' -U postgres
- ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --ui=bdd --reporter=xunit-file
- ./node_modules/.bin/istanbul report cobertura --dir shippable/codecoverage/