Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
service_name: travis-ci | ||
service_name: jenkins-ci |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,7 @@ | ||
*.ami | ||
*.la | ||
*.lo | ||
*.m4 | ||
*.pot | ||
package/*.bz2 | ||
stamp-h* | ||
aclocal.m4 | ||
autodocs-cc.ami | ||
autodocs-cc-base.ami | ||
autodocs-cc-off.ami | ||
autodocs-ycp.ami | ||
autom4te.cache | ||
config.cache | ||
config.guess | ||
config.h | ||
config.h.in | ||
config.log | ||
config.status | ||
config.sub | ||
configure | ||
configure.ac | ||
/coverage/ | ||
/doc/ | ||
install-sh | ||
libtool | ||
ltconfig | ||
ltmain.sh | ||
Makefile | ||
/Makefile.am | ||
Makefile.am.common | ||
Makefile.in | ||
missing | ||
mkinstalldirs | ||
pluglib-bindings.ami | ||
/nbproject/ | ||
test-driver | ||
.yardoc/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# This is the repository specific custom dictionary | ||
# | ||
# Write the words in alphabetical order, one word per line. | ||
# If an unknown word is generic put it into the global dictionary | ||
# in yast-rake in lib/tasks/spell.yml file. | ||
|
||
--- | ||
ignore: | ||
- "doc/**/*" | ||
- "coverage/**/*" | ||
dictionary: | ||
- SLE | ||
- SMT |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,14 @@ BuildRequires: yast2-slp >= 3.1.2 | |
BuildRequires: yast2-packager >= 3.1.26 | ||
BuildRequires: yast2-update >= 3.1.19 | ||
|
||
# Install extra packages for running additional tests 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 0%{?run_ci_tests} | ||
This comment has been minimized.
Sorry, something went wrong. |
||
BuildRequires: rubygem(yast-rake-ci) | ||
%endif | ||
|
||
|
||
BuildArch: noarch | ||
|
||
Summary: YaST2 - Registration Module | ||
|
@@ -76,7 +84,25 @@ Authors: | |
%build | ||
|
||
%check | ||
rake test:unit | ||
%if 0%{?run_ci_tests} | ||
LC_ALL=en_US.UTF-8 \ | ||
COVERALLS_REPO_TOKEN='%{coveralls_repo_token}' \ | ||
CI_PULL_REQUEST='%{ci_pull_request}' \ | ||
JENKINS_URL='%{jenkins_url}' \ | ||
BUILD_URL='%{build_url}' \ | ||
GIT_BRANCH='%{git_branch}' \ | ||
GIT_COMMIT='%{git_commit}' \ | ||
GIT_ID='%{git_commit}' \ | ||
GIT_AUTHOR_NAME='%{git_author_name}' \ | ||
GIT_AUTHOR_EMAIL='%{git_author_email}' \ | ||
GIT_COMMITTER_NAME='%{git_commiter_name}' \ | ||
GIT_COMMITTER_EMAIL='%{git_commiter_email}' \ | ||
GIT_MESSAGE='%{git_message}' \ | ||
This comment has been minimized.
Sorry, something went wrong.
mvidner
Member
|
||
COVERAGE=1 CI=1 \ | ||
rake --verbose --trace check:ci | ||
%else | ||
rake test:unit | ||
%endif | ||
|
||
%install | ||
rake install DESTDIR="%{buildroot}" | ||
|
I think it is slightly better to use
%bcond_with
, as in https://github.com/yast/yast-core/pull/105/files#diff-5ada80d590698e14cfda5a88dce9f4c9