Skip to content

Instantly share code, notes, and snippets.

@jonatw
Created June 21, 2014 20:16
Show Gist options
  • Save jonatw/ea7e7280eab8d1fa2681 to your computer and use it in GitHub Desktop.
Save jonatw/ea7e7280eab8d1fa2681 to your computer and use it in GitHub Desktop.
# {Rails.root}/shippable.yml
# shippleable example for rails 4 with mysql
language: ruby
rvm:
- 2.0.0
env:
- CI_REPORTS=shippable/testresults COVERAGE_REPORTS=shippable/codecoverage
# ensure the test output and coverage dirs are created
before_script:
- cp config/database.yml.shippable config/database.yml
- cp config/secrets.yml.shippable config/secrets.yml
- mysql -e 'create database shippable_test;'
- RAILS_ENV=test rake db:migrate
# write the rspec tests to the output dir
script:
- bin/rspec -f documentation -o shippable/testresults/results.txt
notifications:
email:
recipients:
- test@example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment