Skip to content

Commit 20bcbd2

Browse files
authored
Merge pull request #438 from vim-jp/show-env-only-ci
test: Show environmental information only at CI
2 parents 3cf1095 + 0422eda commit 20bcbd2

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

test/.themisrc

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,20 @@ call themis#option('runtimepath', g:cyclic_module_root)
1616
call themis#option('runtimepath', g:symlinkplugin_root)
1717

1818
" Show environmental information for debugging
19-
call themis#log('***********************************************************')
20-
if has('win16') || has('win32') || has('win64')
21-
call themis#log('Code page: ' . substitute(system('chcp'), '\D', '', 'g'))
19+
if $CI !=# ''
20+
call themis#log('***********************************************************')
21+
if has('win16') || has('win32') || has('win64')
22+
call themis#log('Code page: ' . substitute(system('chcp'), '\D', '', 'g'))
23+
endif
24+
call themis#log('$LANG: ' . $LANG)
25+
call themis#log('&encoding: ' . &encoding)
26+
call themis#log('&termencoding: ' . &termencoding)
27+
call themis#log('&fileencodings: ' . &fileencodings)
28+
call themis#log('&fileformats: ' . &fileformats)
29+
call themis#log('&shellslash: ' . (exists('&shellslash') ? &shellslash : -1))
30+
call themis#log('&runtimepath:')
31+
for s:runtimepath in split(&runtimepath, ',')
32+
call themis#log(' ' . s:runtimepath)
33+
endfor
34+
call themis#log('***********************************************************')
2235
endif
23-
call themis#log('$LANG: ' . $LANG)
24-
call themis#log('&encoding: ' . &encoding)
25-
call themis#log('&termencoding: ' . &termencoding)
26-
call themis#log('&fileencodings: ' . &fileencodings)
27-
call themis#log('&fileformats: ' . &fileformats)
28-
call themis#log('&shellslash: ' . (exists('&shellslash') ? &shellslash : -1))
29-
call themis#log('&runtimepath:')
30-
for s:runtimepath in split(&runtimepath, ',')
31-
call themis#log(' ' . s:runtimepath)
32-
endfor
33-
call themis#log('***********************************************************')

0 commit comments

Comments
 (0)