File tree Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Original file line number Diff line number Diff line change 1
1
[run]
2
2
plugins = covimerage
3
3
data_file = .coverage_covimerage
4
+ branch = 1
Original file line number Diff line number Diff line change @@ -20,30 +20,42 @@ jobs:
20
20
- VIM_VERSION=master
21
21
- MAKE_TARGET=vim/test
22
22
- TEST_PROFILE=vim-profile-master.txt
23
+ - TEST_PYTHON=python3
23
24
- name : Installed Vim with checks
24
25
env :
25
26
- VIM_VERSION=installed
26
27
- MAKE_TARGET=test
27
28
- TEST_PROFILE=vim-profile-installed.txt
28
- - TEST_PYTHON=python3
29
+ - TEST_PYTHON="python -m coverage run --append"
29
30
30
31
install :
31
32
- |
32
33
if [ "$VIM_VERSION" = 'installed' ]; then
33
- pip install -q --user flake8 git+https://github.com/Kuniwak/vint
34
+ python -m pip install -q --user flake8 git+https://github.com/Kuniwak/vint
34
35
else
35
36
bash scripts/install-vim.sh
36
37
export PATH=$HOME/vim/bin:$PATH
37
38
fi
38
- - pip install covimerage --user
39
+ - python -m pip install -q --user covimerage
40
+ - python -m pip freeze
39
41
40
42
script :
41
43
- uname -a
42
44
- which -a vim
43
- - vim --cmd version --cmd quit
45
+ - vim --version
44
46
- make --keep-going $MAKE_TARGET
45
47
46
48
after_success :
49
+ - curl -s https://codecov.io/bash > /tmp/codecov.sh
50
+ # Coverage from Python (cannot be combined with non-branch data).
51
+ - |
52
+ if [[ -f .coverage_covimerage ]]; then
53
+ coverage report -m
54
+ coverage xml
55
+ bash /tmp/codecov.sh -f coverage.xml -F python
56
+ fi
57
+ # Coverage from Vim.
47
58
- covimerage write_coverage $TEST_PROFILE
59
+ - coverage report -m
48
60
- coverage xml
49
- - bash <(curl -s https:/ /codecov.io/bash) -f coverage.xml
61
+ - bash /tmp /codecov.sh -f coverage.xml -F vimscript
You can’t perform that action at this time.
0 commit comments