Sha256: f66e1e4315a681674ef36b24d473ae9612588eacf0d4b90ffe0e2f6ad167a3c9

Contents?: true

Size: 1008 Bytes

Versions: 34

Compression:

Stored size: 1008 Bytes

Contents

#!/usr/bin/env rake
foreman_path = Dir['./foreman', '../foreman', '../../foreman']
foreman_path.select! { |path| File.exist?(File.join(path, 'Gemfile')) }
raise 'Foreman have not been found!' unless foreman_path.any?
foreman_path = File.expand_path(foreman_path.first, __dir__)

# for migrations to work from 'app:db:migrate'
task 'dynflow:migrate' => 'app:dynflow:migrate'
task 'parameters:reset_priorities' => 'app:parameters:reset_priorities'

APP_RAKEFILE = File.expand_path('Rakefile', foreman_path)
load 'rails/tasks/engine.rake'

Bundler::GemHelper.install_tasks

require 'rake/testtask'
require 'rspec/core'
require 'rspec/core/rake_task'

Rake::TestTask.new(test: 'app:db:test:prepare') do |t|
  t.libs << 'test'
  t.libs << File.join(foreman_path, 'lib')
  t.libs << File.join(foreman_path, 'test')
  t.pattern = 'test/**/*_test.rb'
  t.verbose = false
end

desc 'Run all specs in spec directory (excluding plugin specs)'
RSpec::Core::RakeTask.new(spec: 'app:db:test:prepare')

task default: :test

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
foreman_puppet-4.1.1 Rakefile
foreman_puppet-4.1.0 Rakefile
foreman_puppet-4.0.4 Rakefile
foreman_puppet-5.0.0 Rakefile
foreman_puppet-4.0.3 Rakefile
foreman_puppet-4.0.2 Rakefile
foreman_puppet-3.0.7 Rakefile
foreman_puppet-2.0.7 Rakefile
foreman_puppet-4.0.1 Rakefile
foreman_puppet-4.0.0 Rakefile
foreman_puppet-3.0.6 Rakefile
foreman_puppet-2.0.6 Rakefile
foreman_puppet-2.0.5 Rakefile
foreman_puppet-3.0.5 Rakefile
foreman_puppet-3.0.4 Rakefile
foreman_puppet-2.0.4 Rakefile
foreman_puppet-3.0.3 Rakefile
foreman_puppet-3.0.2 Rakefile
foreman_puppet-2.0.3 Rakefile
foreman_puppet-3.0.1 Rakefile