Commits

Stefan Saasen  committed 8741c4f

Install cabal dependencies first

  • Participants
  • Parent commits 5e7289a

Comments (0)

Files changed (1)

File logparser/Rakefile

 end
 
 desc "Create the logparser binary"
-task :build => [:clean, :compile]
+task :build => [:setup, :clean, :compile]
+
+task :setup do
+  ["install --only-dependencies"].each do |cmd|
+    cabal cmd
+  end
+end
 
 task :compile do
   %w(configure build).each do |cmd|
 
 desc "Run the tests"
 task :test do
-  ["clean", "configure --enable-tests", "build", "test"].each do |cmd|
+  ["clean", "install --only-dependencies --enable-tests", "configure --enable-tests", "build", "test"].each do |cmd|
     cabal cmd
   end
 end