• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2020 Google Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15################################################################################
16"""Cloud functions for build infrastructure."""
17
18import base_images
19import project_sync
20import request_build
21import request_coverage_build
22import update_build_status
23
24
25def build_project(event, context):
26  """Entry point for cloud function to requesting project builds."""
27  request_build.request_build(event, context)
28
29
30def sync(event, context):
31  """Entry point for cloud function that syncs projects from github."""
32  project_sync.sync(event, context)
33
34
35def build_base_images(event, context):
36  """Entry point for cloud function that builds base images."""
37  base_images.base_builder(event, context)
38
39
40def coverage_build(event, context):
41  """Entry point for cloud function to build coverage reports."""
42  request_coverage_build.request_coverage_build(event, context)
43
44
45def builds_status(event, context):
46  """Entry point for builds status cloud function."""
47  update_build_status.update_status(event, context)
48
49
50def build_msan(event, context):
51  """Entry point for base msan builder."""
52  base_images.base_msan_builder(event, context)
53