File: ruby-tests.rake

package info (click to toggle)
jekyll 4.4.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,488 kB
  • sloc: ruby: 16,736; javascript: 1,455; sh: 216; xml: 29; makefile: 9
file content (21 lines) | stat: -rw-r--r-- 474 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#-*- mode: ruby; coding: utf-8 -*-
require 'gem2deb/rake/testtask'

task :default => :test

exclude = %w[
  test/test_new_command.rb
  test/test_win_tz.rb
]

ENV["TZ"] = "UTC"

Gem2Deb::Rake::TestTask.new(:test) do |t|
  t.libs << 'lib' << 'test'
  if ENV['AUTOPKGTEST_TEST_NEW_COMMAND']
    t.test_files = FileList['test/test_new_command.rb']
  else
    t.test_files = FileList['test/test_*.rb'].exclude(/.*coffeescript.*|.*theme.*/) - exclude
  end
  t.verbose = true
end