Skip to content

Instantly share code, notes, and snippets.

@mikeumus
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeumus/3b06f32f15ff36dd5dad to your computer and use it in GitHub Desktop.
Save mikeumus/3b06f32f15ff36dd5dad to your computer and use it in GitHub Desktop.
codeship fonda commands

Modify your Setup Commands

  • Feel free to delete all the comments and type in your own commands
  • Each line is treated like a command that you execute in a local shell.
  • i.e.: rvm use 1.9.3
  • i.e.: bundle install
rvm use ruby-2.1.2
rvm gemset create fonda
rvm use ruby-2.1.2@fonda
bundle install

Modify your Test Commands

  • These test commands will be executed after the setup commands
  • i.e.: bundle exec rake

bundle exec rake

/home/rof/.rvm/rubies/ruby-2.1.2/bin/ruby -I/home/rof/cache/bundler/ruby/2.1.0/gems/rspec-core-3.0.0/lib:/home/rof/cache/bundler/ruby/2.1.0/gems/rspec-support-3.0.0/lib -S /home/rof/cache/bundler/ruby/2.1.0/gems/rspec-core-3.0.0/exe/rspec ./spec/api/api_spec.rb ./spec/models/alliance_property_management_rental_spec.rb ./spec/models/applicant_spec.rb ./spec/models/apply_spec.rb ./spec/models/property_manager_spec.rb ./spec/models/rental_complex_spec.rb ./spec/models/rental_offering_spec.rb
/home/rof/cache/bundler/ruby/2.1.0/gems/activerecord-4.1.1/lib/active_record/migration.rb:389:in `check_pending!':  (ActiveRecord::PendingMigrationError)

Migrations are pending. To resolve this issue, run:

	bin/rake db:migrate RAILS_ENV=test

	from /home/rof/src/github.com/RentalGeek/fonda/spec/spec_helper.rb:13:in `<top (required)>'
	from /home/rof/src/github.com/RentalGeek/fonda/spec/api/api_spec.rb:1:in `require'
	from /home/rof/src/github.com/RentalGeek/fonda/spec/api/api_spec.rb:1:in `<top (required)>'
	from /home/rof/cache/bundler/ruby/2.1.0/gems/rspec-core-3.0.0/lib/rspec/core/configuration.rb:1051:in `load'
	from /home/rof/cache/bundler/ruby/2.1.0/gems/rspec-core-3.0.0/lib/rspec/core/configuration.rb:1051:in `block in load_spec_files'
	from /home/rof/cache/bundler/ruby/2.1.0/gems/rspec-core-3.0.0/lib/rspec/core/configuration.rb:1051:in `each'
	from /home/rof/cache/bundler/ruby/2.1.0/gems/rspec-core-3.0.0/lib/rspec/core/configuration.rb:1051:in `load_spec_files'
	from /home/rof/cache/bundler/ruby/2.1.0/gems/rspec-core-3.0.0/lib/rspec/core/runner.rb:97:in `setup'
	from /home/rof/cache/bundler/ruby/2.1.0/gems/rspec-core-3.0.0/lib/rspec/core/runner.rb:85:in `run'
	from /home/rof/cache/bundler/ruby/2.1.0/gems/rspec-core-3.0.0/lib/rspec/core/runner.rb:70:in `run'
	from /home/rof/cache/bundler/ruby/2.1.0/gems/rspec-core-3.0.0/lib/rspec/core/runner.rb:38:in `invoke'
	from /home/rof/cache/bundler/ruby/2.1.0/gems/rspec-core-3.0.0/exe/rspec:4:in `<main>'
/home/rof/.rvm/rubies/ruby-2.1.2/bin/ruby -I/home/rof/cache/bundler/ruby/2.1.0/gems/rspec-core-3.0.0/lib:/home/rof/cache/bundler/ruby/2.1.0/gems/rspec-support-3.0.0/lib -S /home/rof/cache/bundler/ruby/2.1.0/gems/rspec-core-3.0.0/exe/rspec ./spec/api/api_spec.rb ./spec/models/alliance_property_management_rental_spec.rb ./spec/models/applicant_spec.rb ./spec/models/apply_spec.rb ./spec/models/property_manager_spec.rb ./spec/models/rental_complex_spec.rb ./spec/models/rental_offering_spec.rb failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment