From 489446d17a5ed95f5c0b295021de35a47056b18b Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Tue, 18 Apr 2017 00:46:54 -0700 Subject: [PATCH] [infra] new build status ui --- infra/gcb/templates/bower.json | 18 ++ infra/gcb/templates/deploy.sh | 3 + infra/gcb/templates/index.html | 28 ++++ infra/gcb/templates/manifest.json | 6 + infra/gcb/templates/polymer.json | 7 + .../src/build-status/build-status.html | 156 ++++++++++++++++++ 6 files changed, 218 insertions(+) create mode 100644 infra/gcb/templates/bower.json create mode 100755 infra/gcb/templates/deploy.sh create mode 100644 infra/gcb/templates/index.html create mode 100644 infra/gcb/templates/manifest.json create mode 100644 infra/gcb/templates/polymer.json create mode 100644 infra/gcb/templates/src/build-status/build-status.html diff --git a/infra/gcb/templates/bower.json b/infra/gcb/templates/bower.json new file mode 100644 index 000000000..c4b71dbb9 --- /dev/null +++ b/infra/gcb/templates/bower.json @@ -0,0 +1,18 @@ +{ + "name": "build-status", + "main": "index.html", + "dependencies": { + "polymer": "Polymer/polymer#^2.0.0-rc.3", + "paper-item": "PolymerElements/paper-item#2.0-preview", + "app-layout": "PolymerElements/app-layout#2.0-preview", + "paper-card": "PolymerElements/paper-card#2.0-preview", + "iron-icons": "PolymerElements/iron-icons#2.0-preview", + "iron-ajax": "PolymerElements/iron-ajax#2.0-preview", + "iron-flex-layout": "PolymerElements/iron-flex-layout#2.0-preview", + "paper-icon-button": "PolymerElements/paper-icon-button#2.0-preview" + }, + "devDependencies": { + "web-component-tester": "^6.0.0-prerelease.5", + "webcomponentsjs": "webcomponents/webcomponentsjs#^1.0.0-rc.7" + } +} diff --git a/infra/gcb/templates/deploy.sh b/infra/gcb/templates/deploy.sh new file mode 100755 index 000000000..8c4527670 --- /dev/null +++ b/infra/gcb/templates/deploy.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +gsutil -m cp -r bower_components index.html src manifest.json gs://oss-fuzz-build-logs diff --git a/infra/gcb/templates/index.html b/infra/gcb/templates/index.html new file mode 100644 index 000000000..b424be934 --- /dev/null +++ b/infra/gcb/templates/index.html @@ -0,0 +1,28 @@ + + + + + + + OSS-Fuzz build status + + + + + + + + + + + + + + + diff --git a/infra/gcb/templates/manifest.json b/infra/gcb/templates/manifest.json new file mode 100644 index 000000000..c2d45e4f6 --- /dev/null +++ b/infra/gcb/templates/manifest.json @@ -0,0 +1,6 @@ +{ + "name": "build-status", + "short_name": "build-status", + "start_url": "/", + "display": "standalone" +} diff --git a/infra/gcb/templates/polymer.json b/infra/gcb/templates/polymer.json new file mode 100644 index 000000000..2bd10b64a --- /dev/null +++ b/infra/gcb/templates/polymer.json @@ -0,0 +1,7 @@ +{ + "lint": { + "rules": [ + "polymer-2" + ] + } +} diff --git a/infra/gcb/templates/src/build-status/build-status.html b/infra/gcb/templates/src/build-status/build-status.html new file mode 100644 index 000000000..85142f7f8 --- /dev/null +++ b/infra/gcb/templates/src/build-status/build-status.html @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + + + + + + + +