Diff

Differences From Artifact [53f710ed60]:

To Artifact [130cfdc6ea]:


1
2
3
4
5
6
7
8
9
10
#! /usr/bin/env bash

platforms=(x86_64-linux arm-linux arm-android x86_64-macos)

function infoToStatusImageURL() {
	local imageProvidingURL
	local action status platform
	local os
	local url



|







1
2
3
4
5
6
7
8
9
10
#! /usr/bin/env bash

platforms=(x86_64-linux arm-linux arm-android x86_64-macos x86_64-freebsd)

function infoToStatusImageURL() {
	local imageProvidingURL
	local action status platform
	local os
	local url

22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
for action in build tests; do
	for status in pass fail; do
		for platform in "${platforms[@]}"; do
			tag="${action}-${status}-${platform}"
cat << _EOF_
.timelineTableCell a[href*="/timeline?r=${tag}&"] {
  background: url("$(infoToStatusImageURL "${action}" "${status}" "${platform}")");
  width: 120px; 
  height: 20px;
  background-size: 120px 20px;
  background-repeat: no-repeat;
  color: rgba(0,0,0,0);
  display: inline-block;
  text-indent: -65536px;
}
_EOF_
		done
	done
done
exit 0








|

|











22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
for action in build tests; do
	for status in pass fail; do
		for platform in "${platforms[@]}"; do
			tag="${action}-${status}-${platform}"
cat << _EOF_
.timelineTableCell a[href*="/timeline?r=${tag}&"] {
  background: url("$(infoToStatusImageURL "${action}" "${status}" "${platform}")");
  width: 56px; 
  height: 20px;
  background-size: 56px 20px;
  background-repeat: no-repeat;
  color: rgba(0,0,0,0);
  display: inline-block;
  text-indent: -65536px;
}
_EOF_
		done
	done
done
exit 0