forked from shippableSamples/sample_node_postgres
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathshippable.yml
More file actions
47 lines (35 loc) · 1.67 KB
/
shippable.yml
File metadata and controls
47 lines (35 loc) · 1.67 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
42
43
44
45
46
language: node_js
node_js:
- 0.10
build_image: shippable/minv2
archive: true
# For xunit-file module to put results in shippable folder
env:
global:
- XUNIT_FILE=shippable/testresults/result.xml
#beta
- secure: RWOIX8diQo0IHHNFcQvrT5UrMK5SgqqmoD5BjPKB9zhBCSzwS9ZCupj250CBVKSD2E7B9WuQ1SEEMXdHmIl4BWuwtpRh+VonLIIw/gZ5tBDm6xmKNvDdbmxVBlM/S9j0cbJ4c03PsiNpcZAtf5mmTbYpV/IXwHKk3KYk3ZMpLnk7QoQMoeUWbi+36DRrVSoUO9r12AcwTBYkiLR3UiUvX2EeqvDtWQCMcVYt/UfB7RLZwZAoWY8bhn93uteSsg233XAVy0pSqocfWww0tM3rpc72hQm/1gbiZN+maGACR+qY3GWKrdB5WDgzzDUHhAxYiddWdH1/KPqpb/nSu6fUXg==
#prod-collab
- secure: YihNZprbqm3DAyE7r6HJlQJeiNXxA8IVaVSVySABzDngq8nRt+xbjHrQkAEsTTZ+Z3KCBDfdh0bTOllxLKvK6eA7Od7uRUWxgzWLL4TvoZzjn2T2PB9jXUDe+h8L3b0M04sapEqYowvmlQvGkGc3Ku2Gsq/nEwcXonUgU6fHW0cNn/t0LyOSudSfXLyYlyWfq9Fqd81TUukk/9i1+Jy1heCEQm23M7aRi5usJaIILphnvqKLvY7T1hi0TrZbJsm30zUB++7hzEdL4FcgMolIPOU9NzI7SkvSql5zqTsqz9ZMnfBs7FPmN5p0QptdbjV3FJFACR42xGms0DqLNt3wtQ==
#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 $key
- echo $key1
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"