[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] 2 commits: reproducible openwrt: refactoring

Holger Levsen gitlab at salsa.debian.org
Fri Oct 5 12:04:26 BST 2018


Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
93024501 by Holger Levsen at 2018-10-05T10:58:00Z
reproducible openwrt: refactoring

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -
3ac5248e by Holger Levsen at 2018-10-05T11:03:52Z
reproducible openwrt: create landing page

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/reproducible_openwrt.sh


Changes:

=====================================
bin/reproducible_openwrt.sh
=====================================
@@ -604,12 +604,8 @@ else
 	MAGIC_SIGN="?"
 fi
 
-#
-#  finally create the webpage
-#
-cd "$RESULTSDIR" ; mkdir openwrt
-PAGE=openwrt/openwrt_$OPENWRT_TARGET.html
-cat > "$PAGE" <<- EOF
+write_openwrt_page_header(){
+	cat > "$PAGE" <<- EOF
 <!DOCTYPE html>
 <html lang="en-US">
   <head>
@@ -622,11 +618,34 @@ cat > "$PAGE" <<- EOF
     <div id="content">
         <pre>
 EOF
-cat "$BANNER_HTML" >> "$PAGE"
-write_page "       </pre>"
-write_page "     </div><div id=\"main-content\">"
-write_page "       <h1>OpenWrt - <em>reproducible</em> wireless freedom$MAGIC_SIGN</h1>"
+	cat "$BANNER_HTML" >> "$PAGE"
+	write_page "       </pre>"
+	write_page "     </div><div id=\"main-content\">"
+	write_page "       <h1>OpenWrt - <em>reproducible</em> wireless freedom$MAGIC_SIGN</h1>"
+}
+#
+#  create landing age
+#
+cd "$RESULTSDIR" ; mkdir openwrt
+PAGE=openwrt/openwrt.html
+write_openwrt_page_header
 write_page_intro OpenWrt
+write_page "     <p>"
+write_page "     <ul>"
+for i in ar71xx ramips x86 ; do
+	write_page "            <li><a href="openwrt_$i.html">$i</a></li>"
+done
+write_page "     </ul>"
+write_page "     </p>"
+write_page "    </div>"
+write_page_footer OpenWrt
+publish_page
+
+#
+#  finally create the target webpage
+#
+PAGE=openwrt/openwrt_$OPENWRT_TARGET.html
+write_openwrt_page_header
 write_page "       <p>$GOOD_IMAGES ($GOOD_PERCENT_IMAGES%) out of $ALL_IMAGES built images and $GOOD_PACKAGES ($GOOD_PERCENT_PACKAGES%) out of $ALL_PACKAGES built packages were reproducible in our test setup."
 write_page "        These tests were last run on $DATE for version ${OPENWRT_VERSION} using ${DIFFOSCOPE}.</p>"
 write_variation_table OpenWrt



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/compare/5614c3c309d3fc935932ed83027a366a64ab8ebf...3ac5248ee00ae2e21819dcdd208ce2836d61da94

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/compare/5614c3c309d3fc935932ed83027a366a64ab8ebf...3ac5248ee00ae2e21819dcdd208ce2836d61da94
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20181005/f0cf6325/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list