Sha256: e48590b28357411823123a27d5cb2f39375043556a9696c6adb85d5e69e04054

Contents?: true

Size: 1.25 KB

Versions: 11

Compression:

Stored size: 1.25 KB

Contents

# frozen_string_literal: true
require "rake/testtask"
require "rubocop/rake_task"
require "bundler/gem_tasks"

namespace :tests do
  task all: [:in_memory, :file_system]

  Rake::TestTask.new(:suite) do |t|
    t.libs << "test"
    t.libs << "lib"
    t.test_files = FileList["test/**/*_test.rb"]
  end

  desc("Runs the tests with InMemoryStorage")
  task :in_memory do
    ENV["THEME_STORAGE"] = 'InMemoryStorage'
    puts "Running tests with #{ENV['THEME_STORAGE']}"
    Rake::Task['tests:suite'].execute
  end

  desc("Runs the tests with FileSystemStorage")
  task :file_system do
    ENV["THEME_STORAGE"] = 'FileSystemStorage'
    puts "Running tests with #{ENV['THEME_STORAGE']}"
    Rake::Task['tests:suite'].execute
  end
end

task(test: 'tests:all')

RuboCop::RakeTask.new

task default: [:test, :rubocop]

namespace :package do
  require 'theme_check/packager'

  task all: [:homebrew]

  desc("Builds a Homebrew package of the CLI")
  task :homebrew do
    ThemeCheck::Packager.new.build_homebrew
  end
end

desc("Builds all distribution packages of the CLI")
task(package: 'package:all')

desc("Update files in the repo to match new version")
task :prerelease, [:version] do |_t, args|
  require 'theme_check/releaser'
  ThemeCheck::Releaser.new.release(args.version)
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
theme-check-0.10.0 Rakefile
theme-check-0.9.1 Rakefile
theme-check-0.9.0 Rakefile
theme-check-0.8.3 Rakefile
theme-check-0.8.2 Rakefile
theme-check-0.8.1 Rakefile
theme-check-0.8.0 Rakefile
theme-check-0.7.3 Rakefile
theme-check-0.7.2 Rakefile
theme-check-0.7.1 Rakefile
theme-check-0.7.0 Rakefile