Permalink
Browse files

Merge branch 'coverage'

  • Loading branch information...
rhysd committed Nov 25, 2017
2 parents 25a0f8e + 919e44d commit c908a269c34ac0a7da18655bf06b23c1ab43e5c7
Showing with 48 additions and 32 deletions.
  1. +8 −0 .codecov.yml
  2. +3 −5 .gitignore
  3. +22 −9 .travis.yml
  4. +4 −1 README.md
  5. +0 −16 autoload/clever_f/helper.vim
  6. +3 −0 test/.coveragerc
  7. +8 −1 test/.themisrc
View
@@ -0,0 +1,8 @@
coverage:
status:
project:
default:
target: 0%
patch:
default:
target: 0%
View
@@ -1,5 +1,3 @@
.bundle
.vim-flavor
Gemfile.lock
VimFlavor.lock
doc/tags
/doc/tags
/test/profile.txt
/test/.coverage.covimerage
View
@@ -8,16 +8,29 @@ osx_image: xcode9
dist: trusty
install:
- git clone --depth 1 https://github.com/thinca/vim-themis && (cd vim-themis && git show HEAD)
- |
if [[ "$TRAVIS_OS_NAME" == 'osx' ]]; then
brew update
HOMEBREW_NO_AUTO_UPDATE=1 brew install macvim
fi
- git clone --depth 1 https://github.com/thinca/vim-themis && (cd vim-themis && git show HEAD)
- |
if [[ "$TRAVIS_OS_NAME" == 'osx' ]]; then
brew update
export HOMEBREW_NO_AUTO_UPDATE=1
brew install python3
brew install macvim --with-override-system-vim
pip3 install codecov covimerage
else
pip install codecov covimerage --user
fi
before_script:
- uname -a
- vim --version
- uname -a
- vim --version
- covimerage --version
script:
- ./vim-themis/bin/themis test/
- cd test/ && PROFILE_LOG=profile.txt ../vim-themis/bin/themis .
after_success:
- covimerage write_coverage profile.txt
- coverage xml
- bash <(curl -s https://codecov.io/bash)
cache: pip
View
@@ -1,6 +1,7 @@
clever-[f][].vim
====================================================================================================================================
================
[![Build Status][]][Travis CI]
[![Coverage Status][]][Codecov]
clever-f.vim extends `f`, `F`, `t` and `T` mappings for more convenience. Instead of `;`, `f` is available
to repeat after you type `f{char}` or `F{char}`. `F` after `f{char}` and `F{char}` is also available
@@ -143,5 +144,7 @@ Distributed under MIT License. See `doc/clever_f.txt`
[f]: https://github.com/vim-jp/vim/blob/e0e5dfe6148323785e843715d9f6a864bd61c704/runtime/doc/motion.txt#L248
[Build Status]: https://travis-ci.org/rhysd/clever-f.vim.svg?branch=master
[Travis CI]: https://travis-ci.org/rhysd/clever-f.vim
[Coverage Status]: https://codecov.io/gh/rhysd/clever-f.vim/branch/master/graph/badge.svg
[Codecov]: https://codecov.io/gh/rhysd/clever-f.vim
[Try Online Demo]: http://rhysd.github.io/clever-f.vim/
[vim.js]: https://github.com/coolwanglu/vim.js/
@@ -1,19 +1,3 @@
function! s:has_vimproc() abort
if !exists('s:exists_vimproc')
try
silent call vimproc#version()
let s:exists_vimproc = 1
catch
let s:exists_vimproc = 0
endtry
endif
return s:exists_vimproc
endfunction
function! clever_f#helper#system(...) abort
return call(s:has_vimproc() ? 'vimproc#system' : 'system', a:000)
endfunction
if exists('*strchars')
function! clever_f#helper#strchars(str) abort
return strchars(a:str)
View
@@ -0,0 +1,3 @@
[run]
plugins = covimerage
data_file = .coverage.covimerage
View
@@ -1,8 +1,15 @@
let g:Expect = themis#helper('expect')
let g:repo_root = fnamemodify(expand('<sfile>'), ':h:h')
call themis#option('exclude', g:repo_root . '/test/README.md')
call themis#option('exclude', g:repo_root . '/test/Guardfile')
call themis#helper('command').with(themis#helper('assert'))
if $PROFILE_LOG !=# ''
execute 'profile' 'start' $PROFILE_LOG
execute 'profile!' 'file' g:repo_root . '/autoload/clever_f.vim'
execute 'profile!' 'file' g:repo_root . '/autoload/clever_f/helper.vim'
execute 'profile!' 'file' g:repo_root . '/plugin/*'
" Note: covimerage causes UTF-8 decode error in autoload/clever_f/migemo
endif
call themis#option('runtimepath', expand(g:repo_root))

0 comments on commit c908a26

Please sign in to comment.