forked from TestingCI/sample_node_postgres
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathshippable.yml
More file actions
42 lines (30 loc) · 1.25 KB
/
shippable.yml
File metadata and controls
42 lines (30 loc) · 1.25 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
34
35
36
37
38
39
40
41
language: node_js
node_js:
- 0.10
# For xunit-file module to put results in shippable folder
env:
global:
- XUNIT_FILE=shippable/testresults/result.xml
- secure: Z5T3HsgnoI0QdMT5EhaDq/tgkn00Op1ujt9lH4Poa0cb6XC86ek66eUkGu0TUqjzTy/Y6rt1pe77KKOWNKGDFyJtblPH3A42ibtt0Am4R93NoSXrg/9Y5Ivc2QYawv4mjalA5fWYw7FjTxq1b8cvc/ktCiyyw37dd7XlLhUw7xBcjgwcApoMvPoo7Uzdwc0+uaY9F0cLSbvqyvNS5S88EGkgw0RHhTlZ2KWen5BONTNV+FXTMhVbhp6YG8Y6M6V4a4veBFjnHZaAUgTryRFJhDMQ8vk7dGKap+ALrvgSFJ694c4O9c5Gk35XosZa+lgPNST1jEpCbHcv+olU4yCvsA==
#beta
#Create a DB as part of before script to use it
# Make folders for the reports, and create the SQL db
before_script:
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
- mkdir -p shippable/src
- psql -c 'DROP DATABASE IF EXISTS app_test ;' -U postgres -w
- psql -c 'CREATE DATABASE app_test;' -U postgres
- echo $test
script:
- npm test
addons:
postgresql: 9.3
# Generate coverage report with istanbul
after_script:
# - 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/
#cache: true
addons:
postgresql : "9.3"