aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Wagner <benjaminwagner@google.com>2020-02-19 18:41:35 -0500
committerSkia Commit-Bot <skia-commit-bot@chromium.org>2020-02-21 16:01:40 +0000
commit31d0dc162096693b34a5c251346f1813dc870349 (patch)
tree9191b48c9dbe787cc25b965098f4e89a66277d52
parent46f5c5f08b619a039104aff7aec342bd22619e45 (diff)
downloadskia-31d0dc162096693b34a5c251346f1813dc870349.tar.gz
[infra] Add ios-dev-image-11.4 asset
Needed for https://skia-review.googlesource.com/c/skia/+/270446 Bug: skia:9799 Change-Id: I0b5814aa3bae73ca6c231b5ced7a0c94e0efa6dc Reviewed-on: https://skia-review.googlesource.com/c/skia/+/270447 Commit-Queue: Ben Wagner aka dogben <benjaminwagner@google.com> Reviewed-by: Weston Tracey <westont@google.com>
-rw-r--r--infra/bots/assets/ios-dev-image-11.4/README.md7
-rw-r--r--infra/bots/assets/ios-dev-image-11.4/VERSION1
-rwxr-xr-xinfra/bots/assets/ios-dev-image-11.4/common.py26
-rwxr-xr-xinfra/bots/assets/ios-dev-image-11.4/download.py16
-rwxr-xr-xinfra/bots/assets/ios-dev-image-11.4/upload.py16
5 files changed, 66 insertions, 0 deletions
diff --git a/infra/bots/assets/ios-dev-image-11.4/README.md b/infra/bots/assets/ios-dev-image-11.4/README.md
new file mode 100644
index 0000000000..5cea7875d4
--- /dev/null
+++ b/infra/bots/assets/ios-dev-image-11.4/README.md
@@ -0,0 +1,7 @@
+To create or update this asset, you will need a Mac with Xcode installed. Just
+run
+
+```shell
+./upload.py --target_dir \
+ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSup‌​port/11.4
+```
diff --git a/infra/bots/assets/ios-dev-image-11.4/VERSION b/infra/bots/assets/ios-dev-image-11.4/VERSION
new file mode 100644
index 0000000000..56a6051ca2
--- /dev/null
+++ b/infra/bots/assets/ios-dev-image-11.4/VERSION
@@ -0,0 +1 @@
+1 \ No newline at end of file
diff --git a/infra/bots/assets/ios-dev-image-11.4/common.py b/infra/bots/assets/ios-dev-image-11.4/common.py
new file mode 100755
index 0000000000..caa0ad899c
--- /dev/null
+++ b/infra/bots/assets/ios-dev-image-11.4/common.py
@@ -0,0 +1,26 @@
+#!/usr/bin/env python
+#
+# Copyright 2017 Google Inc.
+#
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+
+"""Common vars used by scripts in this directory."""
+
+
+import os
+import sys
+
+FILE_DIR = os.path.dirname(os.path.abspath(__file__))
+INFRA_BOTS_DIR = os.path.realpath(os.path.join(FILE_DIR, os.pardir, os.pardir))
+
+sys.path.insert(0, INFRA_BOTS_DIR)
+from assets import assets
+
+ASSET_NAME = os.path.basename(FILE_DIR)
+
+
+def run(cmd):
+ """Run a command, eg. "upload" or "download". """
+ assets.main([cmd, ASSET_NAME] + sys.argv[1:])
diff --git a/infra/bots/assets/ios-dev-image-11.4/download.py b/infra/bots/assets/ios-dev-image-11.4/download.py
new file mode 100755
index 0000000000..ca999e0378
--- /dev/null
+++ b/infra/bots/assets/ios-dev-image-11.4/download.py
@@ -0,0 +1,16 @@
+#!/usr/bin/env python
+#
+# Copyright 2017 Google Inc.
+#
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+
+"""Download the current version of the asset."""
+
+
+import common
+
+
+if __name__ == '__main__':
+ common.run('download')
diff --git a/infra/bots/assets/ios-dev-image-11.4/upload.py b/infra/bots/assets/ios-dev-image-11.4/upload.py
new file mode 100755
index 0000000000..bdfbda783e
--- /dev/null
+++ b/infra/bots/assets/ios-dev-image-11.4/upload.py
@@ -0,0 +1,16 @@
+#!/usr/bin/env python
+#
+# Copyright 2017 Google Inc.
+#
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+
+"""Upload a new version of the asset."""
+
+
+import common
+
+
+if __name__ == '__main__':
+ common.run('upload')