Added CQ config to skia repo

This must land in sync with https://chromereviews.googleplex.com/204307013 and
revert in sync.

R=rmistry@chromium.org, tandrii@chromium.org
NOTRY=true
NOTREECHECKS=true
BUG=chromium:471767

Review URL: https://codereview.chromium.org/1153093004
diff --git a/infra/OWNERS b/infra/OWNERS
index bb2506a..950bc4d 100644
--- a/infra/OWNERS
+++ b/infra/OWNERS
@@ -1,4 +1,6 @@
+set noparent
 borenet@chromium.org
 jcgregorio@chromium.org
 rmistry@chromium.org
 stephana@chromium.org
+sergiyb@chromium.org
diff --git a/infra/README b/infra/README
deleted file mode 100644
index 1a6dc7e..0000000
--- a/infra/README
+++ /dev/null
@@ -1 +0,0 @@
-This directory contains chrome-infra-specific files.
diff --git a/infra/README.md b/infra/README.md
new file mode 100644
index 0000000..2447756
--- /dev/null
+++ b/infra/README.md
@@ -0,0 +1,5 @@
+This directory contains infra-specific files. The branch-config/ directory
+contains configs that are specific to the master branch (e.g. config for the CQ
+committing to the master branch), while project-config/ directory contains
+project-wide configuration (e.g. list of buckets for cr-buildbucket service and
+list of refs known to the infra services).
diff --git a/infra/branch-config/README.md b/infra/branch-config/README.md
new file mode 100644
index 0000000..c036d61
--- /dev/null
+++ b/infra/branch-config/README.md
@@ -0,0 +1 @@
+This directory contains configuration files for infra services.
diff --git a/infra/branch-config/cq.cfg b/infra/branch-config/cq.cfg
new file mode 100644
index 0000000..adbc129
--- /dev/null
+++ b/infra/branch-config/cq.cfg
@@ -0,0 +1,48 @@
+# Commit Queue configuration file. The documentation of the format can be found
+# at http://luci-config.appspot.com/schemas/projects/refs:cq.cfg.
+
+version: 1
+cq_name: "skia"
+cq_status_url: "https://chromium-cq-status.appspot.com"
+commit_burst_delay: 300
+max_commit_burst: 2
+
+rietveld {
+  url: "https://codereview.chromium.org"
+}
+
+verifiers {
+  reviewer_lgtm {
+    committer_list: "skia"
+    max_wait_secs: 21600  # 6 hours
+    no_lgtm_msg: "No LGTM from a valid reviewer yet. Please ask for an LGTM "
+                 "from a\nfull Skia committer from\n"
+                 "https://skia.googlesource.com/skia/+/master/CQ_COMMITTERS"
+  }
+
+  tree_status {
+    tree_status_url: "https://skia-tree-status.appspot.com"
+  }
+
+  try_job {
+    buckets {
+      name: "client.skia"
+      builders { name: "Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot" }
+      builders { name: "Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot" }
+    }
+    buckets {
+      name: "client.skia.compile"
+      builders { name: "Build-Mac10.8-Clang-x86_64-Release-Trybot" }
+      builders { name: "Build-Ubuntu-Clang-x86_64-Debug-Trybot" }
+      builders { name: "Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot" }
+      builders { name: "Build-Ubuntu-GCC-Mips-Debug-Android-Trybot" }
+      builders { name: "Build-Ubuntu-GCC-x86_64-Release-Trybot" }
+      builders { name: "Build-Win-MSVC-x86-Debug-Trybot" }
+      builders { name: "Build-Win-MSVC-x86_64-Debug-Trybot" }
+    }
+    buckets {
+      name: "client.skia.fyi"
+      builders { name: "skia_presubmit-Trybot" }
+    }
+  }
+}
diff --git a/infra/project-config/README b/infra/project-config/README.md
similarity index 100%
rename from infra/project-config/README
rename to infra/project-config/README.md
diff --git a/infra/project-config/refs.cfg b/infra/project-config/refs.cfg
new file mode 100644
index 0000000..e023102
--- /dev/null
+++ b/infra/project-config/refs.cfg
@@ -0,0 +1,7 @@
+# Refs configuration file. The documentation of the format can be found
+# at https://luci-config.appspot.com/schemas/projects:refs.cfg.
+
+refs {
+  name: "refs/heads/master"
+  config_path: "infra/branch-config"
+}