-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Expand file tree
/
Copy path.autoroller-preupload.sh
More file actions
executable file
·37 lines (32 loc) · 1.31 KB
/
.autoroller-preupload.sh
File metadata and controls
executable file
·37 lines (32 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env bash
# Copyright 2014 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -e
# This is executed by the skia autoroller after the roll has happened but before
# the PR is uploaded. Previously this logic was hardcoded into the autoroller
# and was reserved for updating the LICENSE file. Now the autoroller delegates
# to this script.
# See also:
# - https://skia-review.googlesource.com/c/buildbot/+/1025936
# - https://issues.skia.org/issues/433551375
REPO_PATH=$(dirname "$(readlink -f "$0")")
PROFILE_PATH="$REPO_PATH/engine/src/out/host_profile"
GN="$REPO_PATH/engine/src/flutter/tools/gn"
LICENSE_CPP="$REPO_PATH/engine/src/out/host_profile/licenses_cpp"
WORKING_DIR="$REPO_PATH/engine/src"
LICENSES_PATH="$REPO_PATH/engine/src/flutter/sky/packages/sky_engine/LICENSE"
DATA_PATH="$REPO_PATH/engine/src/flutter/tools/licenses_cpp/data"
cd "$REPO_PATH/engine/src"
./tools/dart/create_updated_flutter_deps.py
cd "$REPO_PATH"
gclient sync -D
# This calls `gn gen`.
"$GN" --runtime-mode profile --no-goma --no-rbe --enable-minimal-linux
ninja -C "$PROFILE_PATH" licenses_cpp
"$LICENSE_CPP" \
--working_dir="$WORKING_DIR" \
--licenses_path="$LICENSES_PATH" \
--data_dir="$DATA_PATH" \
--root_package="flutter" \
--v=1