Sha256: 9de99ef5c18f04a670b9e6d0dda738567e11d1dcea7cb06de920dc53167d7311

Contents?: true

Size: 583 Bytes

Versions: 7

Compression:

Stored size: 583 Bytes

Contents

# frozen_string_literal: true

require 'rake/testtask'

namespace :test do
  Rake::TestTask.new(:gtk3) do |t|
    t.libs = ['lib']
    t.test_files = FileList['test/**/*_test.rb']
    t.ruby_opts += ['-w', '-Itest']
  end

  Rake::TestTask.new(:gtk2) do |t|
    t.libs = ['lib']
    t.test_files = FileList['test/**/*_test.rb']
    t.ruby_opts += ['-w', '-Itest']
  end

  task gtk2: :set_gtk_version_2

  task :set_gtk_version_2 do
    ENV['GTK_VERSION'] = '2'
  end

  task :sleep do
    sleep 1
  end
end

desc 'Run unit tests'
task test: ['test:gtk3', 'test:sleep', 'test:gtk2']

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gir_ffi-gtk-0.15.0 tasks/test.rake
gir_ffi-gtk-0.14.1 tasks/test.rake
gir_ffi-gtk-0.14.0 tasks/test.rake
gir_ffi-gtk-0.13.1 tasks/test.rake
gir_ffi-gtk-0.13.0 tasks/test.rake
gir_ffi-gtk-0.12.1 tasks/test.rake
gir_ffi-gtk-0.12.0 tasks/test.rake