Skip to content

Commit

Permalink
use yast-rake-ci gem
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Apr 26, 2015
1 parent c64fd4f commit f0cb8e7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
7 changes: 7 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@ Yast::Tasks.configuration do |conf|
# lets ignore license check for now
conf.skip_license_check << /.*/
end

# FIXME: remove this, load the CI tasks directly in yast-rake
begin
require "yast/rake_ci"
rescue LoadError
puts "INFO: Gem yast-rake-ci not installed, extra tasks not loaded"
end
18 changes: 4 additions & 14 deletions package/yast2-registration.spec
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,8 @@ BuildRequires: rubygem(suse-connect) >= 0.2.0
BuildRequires: yast2-slp >= 3.1.2
BuildRequires: yast2-packager >= 3.1.26

%if %run_ci_tests
BuildRequires: rubygem(rubocop)
BuildRequires: rubygem(coveralls)
BuildRequires: rubygem(simplecov)
BuildRequires: rubygem(gettext)
BuildRequires: rubygem(raspell)
BuildRequires: aspell-en
%if 0%{?run_ci_tests}
BuildRequires: rubygem(yast-rake-ci)
%endif


Expand All @@ -76,13 +71,8 @@ Authors:
%build

%check
%if %run_ci_tests
# TODO FIXME: replace by something like 'rake check:ci'
rubocop
rake check:pot
# fixme avoid running git there first
# rake check:spelling
COVERAGE=1 rake test:unit
%if 0%{?run_ci_tests}
LC_ALL=en_US.UTF-8 rake --verbose --trace check:ci
%else
rake test:unit
%endif
Expand Down

0 comments on commit f0cb8e7

Please sign in to comment.