Release SVG a bit taller, and add the size test bisect script.
This commit is contained in:
parent
b47acdc8f2
commit
b8f3683f07
|
@ -1,4 +1,4 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="20">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="30">
|
||||
<a href="/xxxserxxx/gotop/releases/tag/v3.5.2">
|
||||
<text text-anchor="middle" font-size="14pt" fill="#000000" x="150" y="15">
|
||||
Current release: <tspan font-weight="bold">v3.5.2</tspan>
|
||||
|
|
Before Width: | Height: | Size: 291 B After Width: | Height: | Size: 291 B |
26
scripts/size.sh
Executable file
26
scripts/size.sh
Executable file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# size.sh is used to bisect the repository and find changes that negatively
|
||||
# impacted the gotop binary size. It does this by building gotop and exiting
|
||||
# successfully if the binary size is under a defined amount.
|
||||
#
|
||||
# Example:
|
||||
# ```
|
||||
# git bisect start
|
||||
# git bisect bad master
|
||||
# git bisect good 755037d211cc8e58e9ce43ee74a95a3036053dee
|
||||
# git bisect run ./size
|
||||
# ```
|
||||
|
||||
GOODSIZE=6000000
|
||||
|
||||
# Caleb's directory structure was different from the current structure, so
|
||||
# we have to find the main package first.
|
||||
pt=$(dirname $(find . -name main.go))
|
||||
# Give the executable a unique-ish name
|
||||
fn=gotop_$(git rev-list -1 HEAD)
|
||||
go build -o $fn $pt
|
||||
sz=$(ls -l $fn | awk '{print $5}')
|
||||
git checkout -- .
|
||||
[[ $sz -gt $GOODSIZE ]] && exit 1
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user