Skip to content

Instantly share code, notes, and snippets.

@lokeshh
Created May 18, 2016 08:32
Show Gist options
  • Select an option

  • Save lokeshh/e5599d112b3546a33b67ca35417462d4 to your computer and use it in GitHub Desktop.

Select an option

Save lokeshh/e5599d112b3546a33b67ca35417462d4 to your computer and use it in GitHub Desktop.
lokeshh:~/workspace/daru (rake_task) $ rake spec
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for an example.
Rserve: no process found
/usr/lib/R/bin/Rcmd: 62: exec: Rserve: not found
Rserve: no process found
/usr/lib/R/bin/Rcmd: 62: exec: Rserve: not found
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for an example.
Rserve: no process found
/usr/lib/R/bin/Rcmd: 62: exec: Rserve: not found
Rserve: no process found
/usr/lib/R/bin/Rcmd: 62: exec: Rserve: not found
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for an example.
Rserve: no process found
/usr/lib/R/bin/Rcmd: 62: exec: Rserve: not found
Rserve: no process found
/usr/lib/R/bin/Rcmd: 62: exec: Rserve: not found
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for an example.
Rserve: no process found
/usr/lib/R/bin/Rcmd: 62: exec: Rserve: not found
Rserve: no process found
/usr/lib/R/bin/Rcmd: 62: exec: Rserve: not found
require 'rspec/core/rake_task'
require 'bundler/gem_tasks'
lib_folder = File.expand_path("../lib", __FILE__)
RUBIES = ['ruby-2.0.0', 'ruby-2.1.1', 'ruby-2.2.1', 'jruby']
task :spec do |task|
RUBIES.each do |ruby_v|
`rvm use #{ruby_v}; rspec spec`
end
end
task :default => :spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment