init
This commit is contained in:
commit
135b14c868
35 changed files with 1363 additions and 0 deletions
11
lib/tasks/license.rake
Normal file
11
lib/tasks/license.rake
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# encoding: utf-8
|
||||
|
||||
namespace :app do
|
||||
namespace :license do
|
||||
task :config do # rubocop:disable Rails/RakeEnvironment
|
||||
@licenser = Licenser.new('hitobito_lit',
|
||||
'TODO: Customer Name',
|
||||
'https://github.com/hitobito/hitobito_lit')
|
||||
end
|
||||
end
|
||||
end
|
||||
20
lib/tasks/spec.rake
Normal file
20
lib/tasks/spec.rake
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# encoding: utf-8
|
||||
|
||||
if Rake::Task.task_defined?('spec:features')
|
||||
# we DO have feature specs in this wagon.
|
||||
Rake::Task['spec:features'].actions.clear
|
||||
namespace :spec do
|
||||
RSpec::Core::RakeTask.new(:features) do |t|
|
||||
t.pattern = './spec/features/**/*_spec.rb'
|
||||
t.rspec_opts = '--tag type:feature'
|
||||
end
|
||||
|
||||
task all: ['spec:features', 'spec']
|
||||
end
|
||||
|
||||
else
|
||||
# we do NOT have feature specs in this wagon.
|
||||
namespace :spec do
|
||||
task all: 'spec'
|
||||
end
|
||||
end
|
||||
9
lib/tasks/tarantula.rake
Normal file
9
lib/tasks/tarantula.rake
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
desc 'Crawl app with tarantula'
|
||||
task :tarantula do # rubocop:disable Rails/RakeEnvironment
|
||||
sh 'rm -rf ../../../tmp/tarantula'
|
||||
sh 'rm -rf ../hitobito/tmp/tarantula'
|
||||
sh "bash -c \"RAILS_ENV=test #{ENV['APP_ROOT']}/bin/with_mysql " \
|
||||
'rake app:tarantula:test"'
|
||||
end
|
||||
Reference in a new issue