-
Notifications
You must be signed in to change notification settings - Fork 2
/
shippable.yml
37 lines (29 loc) · 1.04 KB
/
shippable.yml
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
# language setting
language: node_js
# version numbers
node_js:
- 4.1.2
before_install:
# Activate the required node.js version. $SHIPPABLE_NODE_VERSION
- npm install -g grunt-cli mocha istanbul
# 'npm install' is executed by default in Shippable - shown here for illustrative purposes
install:
- npm install
# Running npm test to run your test cases
script:
- grunt shippable
# The path for Xunit to output test reports
env:
- MOCHA_FILE=shippable/testresults/result.xml
# Create directories for test and coverage reports
before_script:
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
# Tell istanbul to generate a coverage report
after_script:
- ./node_modules/.bin/istanbul report cobertura --dir shippable/codecoverage/
# Pushing to production if everything passes
# after_success:
# - test -f ~/.ssh/id_rsa.heroku || ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.heroku && herok$
# - git remote -v | grep ^heroku || heroku git:remote --ssh-git --app $APP_NAME
# - git push -f heroku master