forked from robotdana/spellr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
29 lines (24 loc) · 759 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# frozen_string_literal: true
require 'bundler/setup'
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
require 'leftovers/rake_task'
require_relative 'lib/spellr/rake_task'
RuboCop::RakeTask.new
RSpec::Core::RakeTask.new(:spec)
Spellr::RakeTask.generate_task
Leftovers::RakeTask.generate_task
ENV['COVERAGE'] = '1'
task default: [:spec, :rubocop, :spellr, :leftovers, :build]
namespace :release do
task :dockerhub_push do
system("#{__dir__}/bin/dockerhub_push")
end
end
Rake::Task[:release].enhance([:"release:dockerhub_push"])
task :keydata do
require_relative 'lib/spellr/key_tuner/naive_bayes'
FileUtils.rm NaiveBayes::YAML_PATH if File.exist?(NaiveBayes::YAML_PATH)
NaiveBayes.new.save_to_yaml
end