From 8080a6e7050ec38aaa81c700e9db4bc2e3ec9009 Mon Sep 17 00:00:00 2001 From: Hal Canary Date: Fri, 2 Mar 2018 11:52:02 -0500 Subject: SkQP: Host APK list on cloud; no more commits No-Try: true Change-Id: I7f77c828cba2aa3763d495bec86d016eb65cb485 Reviewed-on: https://skia-review.googlesource.com/111741 Reviewed-by: Hal Canary Commit-Queue: Hal Canary --- tools/skqp/make_apk_list | 60 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100755 tools/skqp/make_apk_list (limited to 'tools/skqp') diff --git a/tools/skqp/make_apk_list b/tools/skqp/make_apk_list new file mode 100755 index 0000000000..9574101c08 --- /dev/null +++ b/tools/skqp/make_apk_list @@ -0,0 +1,60 @@ +#!/bin/sh + +# Copyright 2018 Google Inc. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +BRANCH="${1:-origin/skqp/dev}" +COUNT="${2:-40}" + +DST=$(mktemp) + +cat > "$DST" << EOF + + + + +SkQP Pre-built APKs + + + + +

SkQP Pre-built APKs

+ + + + + + +EOF + +for commit in $(git log "$BRANCH" -${COUNT} -\-format=%H) ; do + printf '.' >&2 + short="$(git log -1 -\-format=%h $commit)" + url="https://storage.googleapis.com/skia-skqp/skqp-universal-${short}.apk" + if [ 200 -ne "$(curl -s -o /dev/null -w "%{http_code}" "$url")" ] ; then + continue + fi + date=$(TZ='' git log -\-date='format-local:%Y-%m-%d %H:%M:%S %Z' -1 $commit -\-format=%cd) + subj=$(git log -1 $commit -\-format='%<(50,trunc)%s' | sed 's/ *$//') + + commit_url="https://skia.googlesource.com/skia/+/${commit}" + { + printf '\n\n' "$url" "$short" + printf '\n\n\n' "$date" "$commit_url" "$subj" + } >> "$DST" +done +printf '\n\n' >> "$DST" + +echo + +echo 'gsutil -h "Content-Type:text/html" cp' \"$DST\" gs://skia-skqp/apklist +echo 'https://storage.googleapis.com/skia-skqp/apklist' -- cgit v1.2.3
APKDateCommit
skqp-universal-%s.apk%s%s