-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshippable.yml
29 lines (29 loc) · 1.22 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
language: ruby
rvm:
- 2.1.2
services:
- mysql
env:
global:
- CI_REPORTS=shippable/testresults COVERAGE_REPORTS=shippable/codecoverage
- SLACK_ORG=18f PROJECT=myusa
- CODECLIMATE_REPO_TOKEN=fdd28d1ecb46873b6c3969fa679e808a3dfc241f10ee7154884930240d54a4d0
- secure: K6fmrnBxiermK5s96QoOaBEhjvkLzbtSOB34FHXggiYDt8BrrH8Po+8xQ186/rx1uWrm9w4ZL/ZBZpwVaSUA9ZFwTfQ4MtO/fMF0DkL2u/pCXI6ywwRRsBCQfSPQLD5rQdStcn6rFjL8oEfAybKf4N2eTLC/IR+amp/le0SHb3gvgE9lk5E5AfVkWMRMuwjNW3h15eR9jwmDDMCAgMGEmPvIgDdqFVThALOd5cXs7SoZlAMeBrAgOGGYph3SxFicf3OBuDdNOpinECMih/Tu99FUiEUqHXLdt1vwp6ppasiV/WqjEyOXe6Kp9mHhgRJr7xFIpK8X83rfSajUiYO3xA==
install:
- bundle install --without development
before_script:
- cp config/database.yml.example config/database.yml
- cp config/secrets.yml.example config/secrets.yml
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
script:
- RAILS_ENV=test bundle exec rake db:setup
- bundle exec rspec --format RspecJunitFormatter -o shippable/testresults/results.xml
after_failure:
- python other/slack/slack_notifier.py --project $PROJECT --org $SLACK_ORG --token $SLACK_TOKEN
notifications:
email:
on_success: change
on_failure: always
recipients: