xaizek / fragile (License: AGPLv3+) (since 2018-12-07)
Simple lightweight CI, attempting to be somewhat Unix-like in its philosophy.
Commit 71c8095faea2652553b9bbefc7eaf858581837ff

Put conditional builders at the bottom
This way it looks better and they are easier to find.
Author: xaizek
Author date (UTC): 2016-03-23 13:11
Committer name: xaizek
Committer date (UTC): 2016-03-23 13:12
Parent(s): 1eb54849a6510bb9a75bc10e86bd252f7d66114f
Signing key:
Tree: 01aa9469f7582c65b6082d6dff9066633365ba94
File Lines added Lines deleted
dashboard.php 21 1
File dashboard.php changed (mode: 100644) (index b7bd7e6..467cef7)
... ... function displayDashboard()
56 56 function printBuildTable($buildsets, $builders) function printBuildTable($buildsets, $builders)
57 57 { {
58 58 // sort builders by their name // sort builders by their name
59 ksort($builders);
59 uksort($builders, "builderCmp");
60 60
61 61 // output table header // output table header
62 62 print '<table class="dashboard"><tr><td></td>' . "\n"; print '<table class="dashboard"><tr><td></td>' . "\n";
 
... ... function printBuildTable($buildsets, $builders)
100 100 print "</table>\n"; print "</table>\n";
101 101 } }
102 102
103 /**
104 * @brief Custom key comparison function.
105 *
106 * Treats keys with slashes in them as greater than other keys.
107 *
108 * @param a First key.
109 * @param b Second key.
110 *
111 * @returns Value less than, equal to or greater than zero to indicate order.
112 */
113 function builderCmp($a, $b)
114 {
115 $condA = (strpos($a, '/') !== false);
116 $condB = (strpos($b, '/') !== false);
117 if ($condA ^ $condB) {
118 return $condA ? 1 : -1;
119 }
120 return strcmp($a, $b);
121 }
122
103 123 /** /**
104 124 * @brief Checks whether particular status has associated output. * @brief Checks whether particular status has associated output.
105 125 * *
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/fragile

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/fragile

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master