Skip to content

Commit 9f5febe

Browse files
authored
Merge fc6039c into 1af8775
2 parents 1af8775 + fc6039c commit 9f5febe

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

appveyor.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,15 @@ test_script:
196196
197197
on_finish:
198198
- ps: |
199-
Get-ChildItem output\* | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
200-
Get-ChildItem output\*\* | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
199+
$uploadFromFolder = "output\"
200+
if( Test-Path $uploadFromFolder ){
201+
$root = Resolve-Path .\
202+
$output = Resolve-Path $uploadFromFolder
203+
$paths = [IO.Directory]::GetFiles($root.Path, '*.*', 'AllDirectories')
204+
$paths | % {
205+
Push-AppveyorArtifact $_ -FileName $_.Substring($root.Path.Length + 1)
206+
}
207+
}
201208
202209
deploy_script:
203210
- ps: |

tests/lint/createJunitReport.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131

3232
def makeJunitXML(inFileName, outFileName):
33-
with open(inFileName, 'rt', encoding='UTF-8') as flake8In:
33+
with open(inFileName, 'rt', encoding='ANSI', errors='replace') as flake8In:
3434
errorText = flake8In.read()
3535
if len(errorText) > 0:
3636
# make "with error" xml content
@@ -39,7 +39,7 @@ def makeJunitXML(inFileName, outFileName):
3939
# make "no error" xml content
4040
outContents = NO_ERROR
4141

42-
with open(outFileName, 'wt', encoding='UTF-8') as out:
42+
with open(outFileName, 'wt', encoding='UTF-8', errors='replace') as out:
4343
out.write(outContents)
4444

4545

0 commit comments

Comments
 (0)