File: Rakefile

package info (click to toggle)
ruby-crass 1.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 824 kB
  • sloc: ruby: 2,158; python: 202; makefile: 7
file content (21 lines) | stat: -rw-r--r-- 520 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'bundler'
require 'rake/testtask'

Bundler::GemHelper.install_tasks

Rake::TestTask.new
task :default => [:test]
task :test => :set_rubyopts

task :set_rubyopts do
  ENV['RUBYOPT'] ||= ""
  ENV['RUBYOPT'] += " -w"

  if RUBY_ENGINE == "ruby" && RUBY_VERSION >= "2.3"
    ENV['RUBYOPT'] += " --enable-frozen-string-literal --debug=frozen-string-literal"
  end
end

task :'pull-css-tests' do
  sh 'git subtree pull -P test/css-parsing-tests https://github.com/SimonSapin/css-parsing-tests.git master --squash'
end