mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-19 18:47:29 -07:00
Fix Travis CI build
This commit is contained in:
parent
f85d4d774b
commit
240dc9cbb6
@ -66,14 +66,14 @@ Execute (#130 Proper cleanup of on-demand loading triggers):
|
|||||||
|
|
||||||
**********************************************************************
|
**********************************************************************
|
||||||
Execute (#131 Syntax error):
|
Execute (#131 Syntax error):
|
||||||
call plug#begin('/no-permission')
|
call plug#begin('/proc/no-permission')
|
||||||
Plug 'junegunn/vim-emoji'
|
Plug 'junegunn/vim-emoji'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
redir => out
|
redir => out
|
||||||
silent PlugInstall
|
silent PlugInstall
|
||||||
redir END
|
redir END
|
||||||
Assert out =~ 'Invalid plug directory: /no-permission'
|
Assert out =~ 'Invalid plug directory: /proc/no-permission', out
|
||||||
|
|
||||||
**********************************************************************
|
**********************************************************************
|
||||||
Execute (#139-1 Using new remote branch):
|
Execute (#139-1 Using new remote branch):
|
||||||
|
@ -11,6 +11,11 @@ Execute (Initialize test environment):
|
|||||||
let $PLUG_SRC = globpath(&rtp, 'autoload/plug.vim')
|
let $PLUG_SRC = globpath(&rtp, 'autoload/plug.vim')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Temporarily patch plug.vim
|
||||||
|
call system('cp $PLUG_SRC $PLUG_SRC.org')
|
||||||
|
call writefile(extend(readfile($PLUG_SRC),
|
||||||
|
\ ['function! ResetPlug()', 'let s:loaded = {}', 'endfunction']), $PLUG_SRC)
|
||||||
|
|
||||||
set t_Co=256
|
set t_Co=256
|
||||||
colo default
|
colo default
|
||||||
pclose
|
pclose
|
||||||
@ -40,22 +45,13 @@ Execute (Initialize test environment):
|
|||||||
call system(printf('rm -rf "%s"', a:file))
|
call system(printf('rm -rf "%s"', a:file))
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Reload vim-plug to reset s:-variables
|
|
||||||
function! ReloadPlug()
|
function! ReloadPlug()
|
||||||
let tmpdir = tempname()
|
call ResetPlug()
|
||||||
let tmp = tmpdir.'/plug.vim'
|
source $PLUG_SRC
|
||||||
call mkdir(tmpdir, 'p')
|
let &rtp = g:base_rtp
|
||||||
try
|
|
||||||
call writefile(readfile($PLUG_SRC), tmp)
|
|
||||||
unlet! g:loaded_plug
|
|
||||||
execute 'source' tmp
|
|
||||||
let &rtp = g:base_rtp
|
|
||||||
finally
|
|
||||||
call RmRf(tmpdir)
|
|
||||||
endtry
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
call ReloadPlug()
|
source $PLUG_SRC
|
||||||
|
|
||||||
Execute (Print Interpreter Version):
|
Execute (Print Interpreter Version):
|
||||||
redir => out
|
redir => out
|
||||||
@ -84,6 +80,7 @@ Execute (Cleanup):
|
|||||||
silent! delc AssertExpect
|
silent! delc AssertExpect
|
||||||
silent! unmap /
|
silent! unmap /
|
||||||
silent! unmap ?
|
silent! unmap ?
|
||||||
|
call system('mv $PLUG_SRC.org $PLUG_SRC')
|
||||||
|
|
||||||
Restore
|
Restore
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user