Skip to content

Commit 9768d7a

Browse files
committed
ci: report coverage for Python
1 parent ab6c127 commit 9768d7a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.coveragerc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[run]
22
plugins = covimerage
33
data_file = .coverage_covimerage
4+
branch = 1

.travis.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,24 @@ jobs:
2020
- VIM_VERSION=master
2121
- MAKE_TARGET=vim/test
2222
- TEST_PROFILE=vim-profile-master.txt
23+
- TEST_PYTHON=python3
2324
- name: Installed Vim with checks
2425
env:
2526
- VIM_VERSION=installed
2627
- MAKE_TARGET=test
2728
- TEST_PROFILE=vim-profile-installed.txt
28-
- TEST_PYTHON=python3
29+
- TEST_PYTHON="python -m coverage run --append"
2930

3031
install:
3132
- |
3233
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
3435
else
3536
bash scripts/install-vim.sh
3637
export PATH=$HOME/vim/bin:$PATH
3738
fi
38-
- pip install covimerage --user
39+
- python -m pip install -q --user covimerage
40+
- python -m pip freeze
3941

4042
script:
4143
- uname -a
@@ -44,6 +46,7 @@ script:
4446
- make --keep-going $MAKE_TARGET
4547

4648
after_success:
47-
- covimerage write_coverage $TEST_PROFILE
49+
- covimerage write_coverage --append $TEST_PROFILE
50+
- coverage report -m
4851
- coverage xml
4952
- bash <(curl -s https://codecov.io/bash) -f coverage.xml

0 commit comments

Comments
 (0)