FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
quickstart-android/build_pull_request.sh at master · firebase/quickstart-android · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
firebase
/
quickstart-android
Public
Notifications
You must be signed in to change notification settings
Fork
7.4k
Star
9.3k
Code
Issues
37
Pull requests
19
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
quickstart-android
/
build_pull_request.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
34 lines (28 loc) · 839 Bytes
Breadcrumbs
quickstart-android
/
build_pull_request.sh
Copy path
File metadata and controls
executable file
·
34 lines (28 loc) · 839 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#!
/bin/bash
#
Exit on error
set
-e
#
unshallow since GitHub actions does a shallow clone
git fetch --unshallow
git fetch origin
#
Get all the modules that were changed
while
read
line
;
do
module_name=
${line
%%/*
}
if
[[
${MODULES}
!=
*
"
${module_name}
"
]]
;
then
MODULES=
"
${MODULES}
${module_name}
"
fi
done
<
<(
git diff --name-only origin/
$GITHUB_BASE_REF
)
changed_modules=
$MODULES
#
Get a list of all available gradle tasks
AVAILABLE_TASKS=
$(
./gradlew tasks --all
)
#
Check if these modules have gradle tasks
build_commands=
"
"
for
module
in
$changed_modules
do
if
[[
$AVAILABLE_TASKS
=~
$module
"
:app:
"
]]
;
then
build_commands=
${build_commands}
"
:
"
${module}
"
:app:assembleDebug :
"
${module}
"
:app:check
"
fi
done
#
Build
echo
"
Building Pull Request with
"
echo
$build_commands
eval
"
./gradlew clean ktlint
${build_commands}
"
Back
|
FazBrowse Home
|
New Git URL