Skip to content

Commit 9ff2370

Browse files
committed
Only run git config on CI
1 parent d989d9c commit 9ff2370

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.cppsm/travis-ci

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ export PATH="$PWD/bin:$PATH"
77

88
# git config
99

10-
git config --global core.autocrlf false
11-
git config --global user.email "[email protected]"
12-
git config --global user.name "CI script"
10+
if [ "$TRAVIS" = true ]; then
11+
git config --global core.autocrlf false
12+
git config --global user.email "[email protected]"
13+
git config --global user.name "CI script"
14+
fi
1315

1416
# Run tests
1517

0 commit comments

Comments
 (0)