summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index 79ec84f..3bab7ad 100644
--- a/Rakefile
+++ b/Rakefile
@@ -16,6 +16,11 @@ require "mruby/build"
MRUBY_CONFIG = MRuby::Build.mruby_config_path
load MRUBY_CONFIG
+# set up all gems
+MRuby.each_target do
+ gems.setup(self) if enable_gems?
+end
+
# load basic rules
MRuby.each_target do |build|
build.define_rules
@@ -32,6 +37,7 @@ load "#{MRUBY_ROOT}/tasks/test.rake"
load "#{MRUBY_ROOT}/tasks/benchmark.rake"
load "#{MRUBY_ROOT}/tasks/doc.rake"
load "#{MRUBY_ROOT}/tasks/install.rake"
+load "#{MRUBY_ROOT}/tasks/amalgam.rake"
##############################
# generic build targets, rules
@@ -72,22 +78,22 @@ end
desc "run all pre-commit hooks against all files"
task :check do
- sh "pre-commit run --all-files"
+ sh "prek run --all-files"
end
desc "install the pre-commit hooks"
task :checkinstall do
- sh "pre-commit install"
+ sh "prek install"
end
desc "check the pre-commit hooks for updates"
task :checkupdate do
- sh "pre-commit autoupdate"
+ sh "prek autoupdate"
end
desc "run all pre-commit hooks against all files with docker-compose"
task :composecheck do
- sh "docker-compose -p mruby run test pre-commit run --all-files"
+ sh "docker-compose -p mruby run test prek run --all-files"
end
desc "build and run all mruby tests with docker-compose"