Skip to content

Commit

Permalink
[POC] Setup Rake task
Browse files Browse the repository at this point in the history
Because I am tired of doing `bash -l`... for cross repo tests...
  • Loading branch information
NickLaMuro committed Jul 22, 2020
1 parent 57f5e31 commit 07e1b4c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,19 @@ namespace :spec do
desc "Run all cypress specs"
task :cypress => ["app:cypress:ui:run"]

namespace :cypress do
task "ci:install_node" do
sh "nvm install 12"
end

task "ci:install_yarn" do
sh "nvm use 12 && npm install -g yarn"
end

desc "Setup for CI"
task "ci:setup" => ["ci:install_node", "ci:install_yarn", "update:ui", "app:cypress:ui:seed"]
end

desc "Try to compile assets"
task :compile => ["app:assets:precompile"]

Expand Down

0 comments on commit 07e1b4c

Please sign in to comment.