Browse Source

helper rake tasks to test

Lukasz Badura 3 months ago
parent
commit
0ec45fb7bd
1 changed files with 13 additions and 4 deletions
  1. 13 4
      Rakefile

+ 13 - 4
Rakefile

@@ -5,10 +5,19 @@ require "minitest/test_task"
 
 
 Minitest::TestTask.create
 Minitest::TestTask.create
 
 
-desc 'install and run'
-task :run => :install do
-  #sh 'fotos organize -s ~/Downloads/bemol-2025/bemol-2025-hania -d ~/Desktop/bemol-test'
-  sh 'fotos build -s ~/Desktop/bemol-test -d ~/Desktop/bemol-web'
+desc 'install and run organize'
+task :test_organize => :install do
+  sh 'fotos organize -s ~/Downloads/bemol-2025/bemol-2025-hania -d ~/Desktop/bemol-test'
+end
+
+desc 'install and run build'
+task :test_build => :install do
+  sh 'fotos build -s ~/Desktop/bemol-test -d ~/Desktop/bemol-test -t'
+end
+
+desc 'cleanup'
+task :cleanup do
+  sh 'rm -rf ~/Desktop/bemol-test'
 end
 end
 
 
 task default: :test
 task default: :test