forked from shippableSamples/sample_node_mysql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshippable.yml
More file actions
43 lines (36 loc) · 1.31 KB
/
shippable.yml
File metadata and controls
43 lines (36 loc) · 1.31 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
language: node_js
node_js:
- 0.10
services:
- mysql
# For xunit-file module to put results in shippable folder
env:
global:
- secure: H+cwPVG5DJ0ZIqf1F9IMIPVXNHPYtZiIv3++2TjXnq8IrGxxtPSqmhiKb5eURqScZ582NV6BDzOwIFtjCpGVwxNH/5H2Nf2yYYvbAmE083R/E8hNIDPgkqav/l4pT3zocydDGUbcPuF4g0toXL/k6z6uwzPoI9N1kBZ0TvjQMgrad4PcH5wZPl9/LUWAqQT3aFUjzywYfTkkSKD2mrVySkTrS8muZz6H7ahzpk62cwpz7hzmqkse8J5Ukks3AUSf1/jkxN00TTEOxDtKafUwgGOUjsW6fBUrLNhYvcYDMcH2TKzkHGhY81vMRfyjIdvTBxXrD0zLjsBh9aHqm50C6w==
- XUNIT_FILE=shippable/testresults/result.xml
# Make folders for the reports, and create the SQL db
before_script:
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
- mysql -e 'drop database if exists test;'
- mysql -e 'create database if not exists test;'
# - mysql -e "create database if not exists \`project-test\`;"
script:
- npm test
- echo $foo
- echo $bar
# Generate coverage report with istanbul
after_script:
- ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha test.js -- -u tdd
- ./node_modules/.bin/istanbul report cobertura --dir shippable/codecoverage/
notifications:
email:
recipients:
- "vidya@shippable.com"
on_success: change
on_failure: always
irc:
pull_requests: true
channels:
- "chat.freenode.net#test-irc"
- "chat.freenode.net#testing2"