Skip to content

Commit 87187e2

Browse files
authored
travis: Fix issue of git user email not set
1 parent 91d0bff commit 87187e2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.travis/script.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ die() {
66
set -x
77

88
[ $TRAVIS_OS_NAME != linux ] || {
9+
U_NAME=${U_NAME:=embARC_Bot}
10+
U_EMAIL=${U_EMAIL:=info@embARC.org}
11+
echo $UNAME, $U_EMAIL
12+
git config --global user.name "${U_NAME}"
13+
git config --global user.email "${U_EMAIL}"
914

1015
export PATH=/tmp/arc_gnu_2017.09_prebuilt_elf32_le_linux_install/bin:$PATH || die
1116
git checkout -- . || die
@@ -19,6 +24,7 @@ set -x
1924
bash apply_embARC_patch.sh || die
2025
cd ../ || die
2126
cd .travis || die
27+
2228
[ $TOOLCHAIN != gnu -o $BOARD != emsk -o $BD_VER != 11 -o $CUR_CORE != arcem6 ] || {
2329

2430
python3 build.py "TOOLCHAIN=${TOOLCHAIN} BOARD=${BOARD} BD_VER=${BD_VER} CUR_CORE=${CUR_CORE}" || die

0 commit comments

Comments
 (0)