Skip to content

Commit

Permalink
Merge 64b652c into 3bd6833
Browse files Browse the repository at this point in the history
  • Loading branch information
Vogtinator committed Mar 15, 2018
2 parents 3bd6833 + 64b652c commit 08036a2
Show file tree
Hide file tree
Showing 8 changed files with 812 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .noserc
@@ -0,0 +1,2 @@
[nosetests]
ignore-files=docker_.+\.py
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -70,7 +70,8 @@ matrix:
# Needs python prefix to use the correct interpretor.
- python ./obs_clone.py --cache --debug --apiurl-target local
script:
- nosetests --with-coverage --cover-package=. --cover-inclusive
# Ignore the Python3 docker_*.py scripts
- nosetests --with-coverage --cover-package=. --cover-inclusive -c .noserc
after_success:
- coveralls

Expand Down
3 changes: 2 additions & 1 deletion Makefile
Expand Up @@ -6,6 +6,7 @@ pkgdata_BINS = \
check_maintenance_incidents.py \
check_source.py \
devel-project.py \
docker_publisher.py \
leaper.py \
manager_42.py \
metrics.py \
Expand Down Expand Up @@ -42,7 +43,7 @@ check: test

test:
# to see more add -v -d -s --nologcapture
$(wildcard /usr/bin/nosetests-2.*)
$(wildcard /usr/bin/nosetests-2.*) -c .noserc

package:
touch dist/package/$(package_name).changes
Expand Down
28 changes: 28 additions & 0 deletions dist/package/openSUSE-release-tools.spec
Expand Up @@ -122,6 +122,18 @@ Requires(pre): shadow
%description check-source
Check source review bot that performs basic source analysis and assigns reviews.

%package docker-publisher
Summary: Docker image publishing bot
Group: Development/Tools/Other
BuildArch: noarch
Requires: python3-requests
Requires: python3-lxml
Requires(pre): shadow

%description docker-publisher
A docker image publishing bot which regularly pushes built docker images from
several sources (Repo, URL) to several destinations (git, Docker registries)

%package leaper
Summary: Leap-style services
Group: Development/Tools/Other
Expand Down Expand Up @@ -298,6 +310,14 @@ exit 0
%postun check-source
%systemd_postun

%pre docker-publisher
getent passwd osrt-docker-publisher > /dev/null || \
useradd -r -m -s /sbin/nologin -c "user for openSUSE-release-tools-docker-publisher" osrt-docker-publisher
exit 0

%postun docker-publisher
%systemd_postun

%pre leaper
getent passwd osrt-leaper > /dev/null || \
useradd -r -m -s /sbin/nologin -c "user for openSUSE-release-tools-leaper" osrt-leaper
Expand Down Expand Up @@ -418,6 +438,14 @@ fi
%{_unitdir}/osrt-check-source.service
%{_unitdir}/osrt-check-source.timer

%files docker-publisher
%defattr(-,root,root,-)
%{_bindir}/osrt-docker_publisher
%{_datadir}/%{source_dir}/docker_publisher.pl
%{_datadir}/%{source_dir}/docker_registry.py
%{_unitdir}/osrt-docker-publisher.service
%{_unitdir}/osrt-docker-publisher.timer

%files leaper
%defattr(-,root,root,-)
%{_bindir}/osrt-leaper
Expand Down

0 comments on commit 08036a2

Please sign in to comment.