Sha256: ed706c3013e4844f755d30d8b86288a01e96b863331e3431bacac73d779b8098

Contents?: true

Size: 1.03 KB

Versions: 3

Compression:

Stored size: 1.03 KB

Contents

# frozen_string_literal: true

require 'bundler'
Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)

task test: :spec
task default: :spec

desc 'Rebuild Circle CI configuration based on the build matrix template .circleci/config.yml.erb'
task :circleci do
  require 'erb'
  template_path = File.expand_path('.circleci/config.yml.erb', __dir__)
  config_path = File.expand_path('.circleci/config.yml', __dir__)
  File.write config_path, ERB.new(File.read(template_path)).result
end

module SteepRunner
  def self.run(*command)
    require "steep"
    require "steep/cli"

    Steep::CLI.new(argv: command, stdout: $stdout, stderr: $stderr, stdin: $stdin).run
  end
end

task :steep do
  SteepRunner.run("check")
end

namespace :steep do
  task :stats do
    SteepRunner.run("stats", "--log-level=fatal")
  end
end

namespace :rbs do
  task :spec do
    exec(
      {
        'RBS_TEST_TARGET' => 'MetaTags::*',
        'RUBYOPT'         => '-rrbs/test/setup',
      },
      'bundle exec rspec',
    )
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
meta-tags-2.18.0 Rakefile
meta-tags-2.17.0 Rakefile
meta-tags-2.16.0 Rakefile