Skip to content

Commit

Permalink
jenkins support
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Apr 21, 2015
1 parent 67d361e commit bd12c58
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion package/yast2-bootloader.spec
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ BuildRequires: rubygem(rspec)
BuildRequires: rubygem(yast-rake)
BuildRequires: yast2-storage
BuildRequires: yast2-ruby-bindings >= 1.0.0

# Install extra packages for additional tests run at the Jenkins CI builds.
# run manually: osc build --define "run_ci_tests 1"
# from sources: rake osc:build['--define "run_ci_tests 1"']

%if %run_ci_tests
BuildRequires: rubygem(rubocop)
BuildRequires: rubygem(coveralls)
BuildRequires: rubygem(simplecov)
BuildRequires: rubygem(gettext)
%endif

PreReq: /bin/sed %fillup_prereq
# Base classes for inst clients
Requires: yast2 >= 3.1.112
Expand Down Expand Up @@ -66,7 +78,14 @@ provided by yast2-bootloader package.
%setup -n %{name}-%{version}

%check
rake test:unit
%if %run_ci_tests
# TODO FIXME: replace by something like 'rake check:ci'
rubocop
rake check:pot
COVERAGE=1 rake test:unit
%else
rake test:unit
%endif

%build
yardoc
Expand Down

0 comments on commit bd12c58

Please sign in to comment.