Skip to content

Commit 002a044

Browse files
Update AppVeyor config for coverage-reports
1 parent 6ff792b commit 002a044

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

.appveyor.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
#---------------------------------#
44

55
# version format
6-
version: 2.0.{build}
6+
version: 2.1.{build}
77

88
# branches to build
99
branches:
1010
# whitelist
1111
only:
1212
- master
13-
- devops
13+
- develop
1414

1515
# blacklist
1616
except:
@@ -44,7 +44,7 @@ init:
4444
shallow_clone: false # default is "false"
4545

4646
# set clone depth
47-
clone_depth: 5 # clone entire repository history if not defined
47+
clone_depth: 1 # clone entire repository history if not defined
4848

4949
# this is how to allow failing jobs in the matrix
5050
# matrix:
@@ -70,6 +70,7 @@ build: off
7070
install:
7171
- C:\Python311-x64\python -m pip install -r requirements-dev.txt
7272
- C:\Python311-x64\python -m pip install -r requirements.txt
73+
- C:\Python311-x64\python -m pip install robotframework
7374
- C:\Python311-x64\python -m pip install .
7475

7576
#---------------------------------#
@@ -80,3 +81,9 @@ install:
8081
test_script:
8182
- set PATH=C:\Python311-x64;C:\Python311-x64\Scripts;%PATH%
8283
- C:\Python311-x64\python -m invoke test-ci
84+
- 7z -r a coverage_report.7z %APPVEYOR_BUILD_FOLDER%\.coverage.* %APPVEYOR_BUILD_FOLDER%\.coverage-reports
85+
86+
artifacts:
87+
- path: coverage_report.7z
88+
name: coverage_report
89+

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ omit =
1313
./utest/*
1414
# robot library
1515
./src/robotide/lib/robot/*
16-
./src/robotide/preferences/configobj/*
16+
# ./src/robotide/preferences/configobj/*
1717
*/.venv/*
1818

1919
[report]

tasks.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,8 @@ def tags_test(ctx):
370370
_set_development_path()
371371
try:
372372
import subprocess
373+
g = subprocess.Popen(["git", "submodule", "init"])
374+
g.communicate(b'')
373375
g = subprocess.Popen(["git", "submodule", "update"])
374376
g.communicate(b'')
375377
p = subprocess.Popen(["/usr/bin/python", "/home/helio/github/RIDE/src/robotide/editor/tags.py"])
@@ -407,14 +409,16 @@ def test_ci(ctx, test_filter=''):
407409

408410
try:
409411
import subprocess
412+
g = subprocess.Popen(["git", "submodule", "init"])
413+
g.communicate(b'')
410414
g = subprocess.Popen(["git", "submodule", "update"])
411415
g.communicate(b'')
412416

413417
a = subprocess.Popen(["coverage", "run", "-a", "--data-file=.coverage.1", "-m", "pytest", "--cov-config=.coveragerc", "-k test_", "-v", "utest/application/test_app_main.py"])
414418
a.communicate(b'')
415419
b = subprocess.Popen(["coverage", "run", "-a", "--data-file=.coverage.2", "-m", "pytest", "--ignore=utest/application/test_app_main.py", "--cov-config=.coveragerc", "-k test_", "-v", TEST_DIR])
416420
b.communicate(b'')
417-
c = subprocess.Popen(["coverage", "combine"]) #, "--keep"
421+
c = subprocess.Popen(["coverage", "combine", "--keep"])
418422
c.communicate(b'')
419423
r = subprocess.Popen(["coverage", "report"])
420424
r.communicate(b'')

0 commit comments

Comments
 (0)