-
Notifications
You must be signed in to change notification settings - Fork 8
Continuous Integration
JP Barbosa edited this page Jul 23, 2015
·
2 revisions
gem install travis
travis login --github-token YOUR_TOKEN
travis enable -r jp7internet/rails-apz
travis env set RECAPTCHA_PRIVATE_KEY $RECAPTCHA_PRIVATE_KEY -r jp7internet/rails-apz
travis env set RECAPTCHA_PUBLIC_KEY $RECAPTCHA_PUBLIC_KEY -r jp7internet/rails-apz
nano .travis.yml
language: ruby
cache: bundler
rvm:
- 2.1.5
script:
- bundle exec rake db:test:prepare
- bundle exec rake test test
git add .
git commit -m "Add Travis"
git push
travis whatsup
echo "gem 'codeclimate-test-reporter', group: :test, require: nil" >> Gemfile
bundle install
open https://codeclimate.com/github/signup
export CODECLIMATE_REPO_TOKEN=XXXXXXXXXXXX
nano test/test_helper.rb
require "codeclimate-test-reporter"
CodeClimate::TestReporter.start
...
rake test test
travis env set CODECLIMATE_REPO_TOKEN $CODECLIMATE_REPO_TOKEN -r jp7internet/rails-apz
travis restart
echo /coverage >> .gitignore
git add .
git commit -m "Add continuous integration with Travis and Code Climate"
git push
travis whatsup