Skip to content

Commit 3f80b99

Browse files
committed
travis: run-build: don't configure git for LOCAL_BUILD
If doing a LOCAL_BUILD, we don't really need to setup a dummy git account. On top of that, we don't really want dummy, temporary commits so don't do that as well. Signed-off-by: Nuno Sa <nuno.sa@analog.com>
1 parent d31fa31 commit 3f80b99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ci/travis/run-build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ build_check_new_file_license() {
198198
}
199199

200200
__setup_dummy_git_account() {
201+
[ "${LOCAL_BUILD}" == "y" ] && return 0
201202
# setup an email account so that we can cherry-pick stuff
202203
git config user.name "CSE CI"
203204
git config user.email "cse-ci-notifications@analog.com"
@@ -246,7 +247,7 @@ build_default() {
246247
# Also note that this is only an issue for ARM...
247248
#
248249
# We should keep an eye on this (every time we upgrade) so we can remove this as soon as possible...
249-
[ "$ARCH" = "arm" ] && {
250+
[ "$ARCH" = "arm" ] && [ "$LOCAL_BUILD" != "y" ] && {
250251
sed -i '/CONFIG_GCC_PLUGINS/d' arch/arm/configs/$DEFCONFIG
251252
__setup_dummy_git_account
252253
# don't error out if the commit fails as we don't explicitly disable the plugins for

0 commit comments

Comments
 (0)