-
Notifications
You must be signed in to change notification settings - Fork 4
/
shippable.yml
34 lines (27 loc) · 1.09 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
language: node_js
node_js:
- 0.10.25
services:
- mongodb
env:
global:
- XUNIT_FILE=shippable/testresults/result.xml
- AWSAccessKeyId=AKIAJJL2U6T3F3Y5JIGA
- secure: tD2cjFcQ6xqzxhBjqu2y8XIqyw5kbwd2IhhocYJYtHlBAxVATmL5VTaH8WlqKC5O5wzTujekVmhlJ5eNrmVa3kBqDxKd4Go+oELoM0crDBepSudRoVHd11ee+YRhsgCuj3tfXSR+bUJV9wBcvZBRcTwDs1Nz82zX45R3pQzMIQ0JbSTGIppXtonYCpw9yx1JUpMtOf6XwcXfnOyUKWGsE8Abj9AOZxQ0oGalEtdSbrBUIY8iwzV0j/VzijfZzRpAK23AvOZLVNlp0+JCK+5OFlSOgVn4KV9j6lFA4MpT4dBacYItXNOkLVpx5fxVfq+r6CE8YlQObv4V0nJWTf2wtw==
before_install:
- pip install awsebcli
before_script:
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
- mkdir -p ~/.aws
- echo '[profile eb-cli]' > ~/.aws/config
- echo "aws_access_key_id = $AWSAccessKeyId" >> ~/.aws/config
- echo "aws_secret_access_key = $AWSSecretKey" >> ~/.aws/config
script:
- mkdir -p .elasticbeanstalk
- cp config.yml .elasticbeanstalk/
- grunt
after_success:
- ./node_modules/.bin/istanbul cover grunt -- -u tdd
- ./node_modules/.bin/istanbul report cobertura --dir shippable/codecoverage/
- eb init && eb deploy