Sha256: 41f390c9a998ef26d33fbf53636cee1a74f974b6d5fe8f1b573282a9db1e7ecb

Contents?: true

Size: 543 Bytes

Versions: 1

Compression:

Stored size: 543 Bytes

Contents

require "bundler/gem_tasks"
require "rake/testtask"
require "rspec/core/rake_task"

Rake::TestTask.new(:test) do |t|
  t.libs << "test"
  t.libs << "lib"
  t.test_files = FileList["test/**/*_test.rb"]
end

RSpec::Core::RakeTask.new(:spec)

task default: :test

desc "Set up test database"
task :setup_test_db do
  create_db_cmd = "mysql -e 'CREATE DATABASE `postfix_test`;'"
  puts create_db_cmd
  puts `#{create_db_cmd}`

  import_db_cmd = "mysql postfix_test < docker-db/postfix.v1841.sql"
  puts import_db_cmd
  puts `#{import_db_cmd}`
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
postfix_admin-0.3.0 Rakefile