Sha256: 431c1e0176020a8ec5d8c46c349919671e99e6db19a3535892d9f64408a6a34d

Contents?: true

Size: 869 Bytes

Versions: 6

Compression:

Stored size: 869 Bytes

Contents

# frozen_string_literal: true

require "bundler/gem_tasks"
require "rake/testtask"
require "yaml"
require_relative 'lib/rsyntaxtree'
require_relative 'lib/rsyntaxtree/utils'

# task default: "test"

Rake::TestTask.new do |task|
  task.pattern = "test/*_test.rb"
  task.warning = false
end

desc "Generate SVG and PNG example images locally"
task :generate do
  require_relative "dev/generate_examples"
end

desc "Docker image Build"
task :docker_build do
  `docker build ./ -t rsyntaxtree_devel`
end

desc "Generate SVG and PNG example images using Docker mage"
task :docker_generate do
  docpath = File.expand_path(File.join(__dir__, "docs"))
  `docker build ./ -t rsyntaxtree_devel`
  `docker run --rm -v #{docpath}:/rsyntaxtree/hostdocs rsyntaxtree_devel ruby /rsyntaxtree/dev/generate_examples.rb /rsyntaxtree/hostdocs`
  `cat #{docpath}/generate_examples.log`
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rsyntaxtree-1.3.0 Rakefile
rsyntaxtree-1.2.12 Rakefile
rsyntaxtree-1.2.10 Rakefile
rsyntaxtree-1.2.9 Rakefile
rsyntaxtree-1.2.8 Rakefile
rsyntaxtree-1.2.7 Rakefile