[X2Go-Commits] [x2gobroker] 01/01: x2gobroker.spec: Let's try to get unit tests working on Fedora first...

git-admin at x2go.org git-admin at x2go.org
Mon Apr 30 20:23:51 CEST 2018

This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2gobroker.

commit 1ca66223c34075935897d4bd223919a8e6a95637
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Mon Apr 30 20:23:47 2018 +0200

    x2gobroker.spec: Let's try to get unit tests working on Fedora first...
 Makefile.docupload | 20 +++++++++-----------
 x2gobroker.spec    |  6 +++++-
 2 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/Makefile.docupload b/Makefile.docupload
index f1c0f4a..e729c68 100644
--- a/Makefile.docupload
+++ b/Makefile.docupload
@@ -9,17 +9,15 @@ DOC_USER=x2go-admin
 doc: docbuild docupload
-	mkdir -p $(CURDIR)/.epydoc/html
-	#mkdir -p .epydoc/pdf
-	#mkdir -p .epydoc/pdf.tmp
-	rm -Rf .epydoc/html/*
-	epydoc --debug -n "Python X2Go Broker" -u http://www.x2go.org -v --html --no-private -o $(CURDIR)/.epydoc/html $(CURDIR)/x2gobroker/
-	#epydoc --debug --pdf --no-private -o .epydoc/pdf.tmp x2go/
-	#mv .epydoc/pdf.tmp/api.pdf .epydoc/pdf/Python-X2Go_API.pdf
-	#rm -Rf .epydoc/pdf.tmp
+	${MAKE} -C docs/ clean
+docbuild: clean
+	${MAKE} -C docs/ html SPHINXOPTS="-a -E"
+	${MAKE} -C docs/ html
+docupload: clean docbuild
 	ssh -l${DOC_USER} ${DOC_HOST} rm -Rfv ${DOC_PATH}/*
-	scp -r .epydoc/html/* ${DOC_USER}@${DOC_HOST}:${DOC_PATH}/
+	scp -r docs/build/html/* ${DOC_USER}@${DOC_HOST}:${DOC_PATH}/
diff --git a/x2gobroker.spec b/x2gobroker.spec
index ad568bc..3ca617b 100644
--- a/x2gobroker.spec
+++ b/x2gobroker.spec
@@ -33,7 +33,8 @@ BuildRequires:  fdupes
 BuildRequires:  sudo
-# for unit tests...
+%if 0%{?fedora}
+# for unit tests, only test on Fedora for now, as the others lack (some of) those modules...
 %if 0%{?suse_version}
 BuildRequires:  python3-pampy
@@ -44,6 +45,7 @@ BuildRequires:  python3-tornado
 BuildRequires:  python3-paramiko
 BuildRequires:  python3-daemon
 BuildRequires:  python3-lockfile
 %if 0%{?fedora} || 0%{?el7} || 0%{?suse_version} >= 1230
 BuildRequires:  systemd
@@ -374,8 +376,10 @@ installed on your to-be-managed X2Go servers.
 %setup -q
+%if 0%{?fedora}
 python3 test.py
 echo "Files where we will be patching libexecedir:"

Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gobroker.git

More information about the x2go-commits mailing list