Skip to content

Commit

Permalink
Added lighthouse report generation
Browse files Browse the repository at this point in the history
  • Loading branch information
eko committed May 24, 2018
1 parent 130760b commit c6f8f29
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .functions
Expand Up @@ -156,6 +156,17 @@ function gify {
ffmpeg -i $1 -vf scale=$ratio -r $fpm -ss $3 -t $4 $2
}

# Usage: lighthouse <url> <json | html>
function lighthouse {
result=`curl -s https://builder-dot-lighthouse-ci.appspot.com/stream\?url=$1\&format=$2 | grep done | cut -d' ' -f3`

if [[ $2 == "json" ]]; then
curl -s $result
else
echo "Report available: $result"
fi
}

# Sets Cloudflare DNS servers on a network interface
function opendns() {
echo "Select the network interface:\n1) Belkin USB-C LAN\n2) Wi-Fi"
Expand Down

0 comments on commit c6f8f29

Please sign in to comment.