Skip to content

Commit

Permalink
[FIXUP][integration.rake] Support CYPRESS_DEV
Browse files Browse the repository at this point in the history
Updates integration:compile_assets to support `$CYPRESS_DEV`.

When set, it will update assets in "dev" mode, otherwise it will assume
a production setup.
  • Loading branch information
NickLaMuro committed Jul 10, 2020
1 parent 24c2861 commit 09b6005
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/tasks/integration.rake
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,12 @@ namespace :integration do
ENV["RAILS_SERVE_STATIC_FILES"] = "true"
end

task :compile_assets do
if ENV['CYPRESS_DEV']
Rake::Task['update:ui'].invoke
task :compile_assets do |rake_task|
app_prefix = rake_task.name.chomp('integration:compile_assets')
if ENV["CYPRESS_DEV"]
Rake::Task["#{app_prefix}update:ui"].invoke
else
Rake::Task['evm:compile_assets'].invoke
Rake::Task["#{app_prefix}evm:compile_assets"].invoke
end
end

Expand Down

0 comments on commit 09b6005

Please sign in to comment.