Skip to content

Commit be8e7c9

Browse files
committed
Added artifacts to matrix and made test upload global
1 parent 451c6a3 commit be8e7c9

File tree

1 file changed

+24
-18
lines changed

1 file changed

+24
-18
lines changed

appveyor.yml

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ before_package:
2222
- powershell "& "".\BuildUnityPackages.ps1"""
2323

2424
artifacts:
25-
- path: 'MLAPI\bin\Debug\MLAPI.*'
26-
- path: 'MLAPI\bin\Debug\Lite\MLAPI.*'
27-
- path: 'MLAPI\bin\Release\MLAPI.*'
28-
- path: 'MLAPI\bin\Release\Lite\MLAPI.*'
2925
- path: '*.unitypackage'
3026

3127
image: Visual Studio 2017
@@ -36,28 +32,38 @@ for:
3632
matrix:
3733
only:
3834
- configuration: Debug
39-
4035
test_script:
4136
- .\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -returntargetcode -register:user -target:"nunit3-console.exe" -targetargs:"MLAPI-Tests\bin\Debug\MLAPI-Tests.dll" -output:"coverage.xml" -filter:"+[MLAPI*]* -[MLAPI-Tests*]* "
42-
after_test:
43-
- ps: |
44-
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
45-
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
46-
bash codecov.sh -f "coverage.xml"
37+
artifacts:
38+
- path: 'MLAPI\bin\Debug\MLAPI*'
4739
-
4840
matrix:
4941
only:
5042
- configuration: Debug_Lite
51-
5243
test_script:
5344
- .\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -returntargetcode -register:user -target:"nunit3-console.exe" -targetargs:"MLAPI-Tests\bin\Lite\Debug\MLAPI-Tests.dll" -output:"coverage.xml" -filter:"+[MLAPI*]* -[MLAPI-Tests*]* "
54-
after_test:
45+
artifacts:
46+
- path: 'MLAPI\bin\Debug\Lite\MLAPI*'
47+
-
48+
matrix:
49+
only:
50+
- configuration: Release
51+
test_script:
52+
- .\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -returntargetcode -register:user -target:"nunit3-console.exe" -targetargs:"MLAPI-Tests\bin\Release\MLAPI-Tests.dll" -output:"coverage.xml" -filter:"+[MLAPI*]* -[MLAPI-Tests*]* "
53+
artifacts:
54+
- path: 'MLAPI\bin\Release\MLAPI*'
55+
-
56+
matrix:
57+
only:
58+
- configuration: Release_Lite
59+
test_script:
60+
- .\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -returntargetcode -register:user -target:"nunit3-console.exe" -targetargs:"MLAPI-Tests\bin\Lite\Release\MLAPI-Tests.dll" -output:"coverage.xml" -filter:"+[MLAPI*]* -[MLAPI-Tests*]* "
61+
artifacts:
62+
- path: 'MLAPI\bin\Release\Lite\MLAPI*'
63+
64+
65+
after_test:
5566
- ps: |
5667
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
5768
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
58-
bash codecov.sh -f "coverage.xml"
59-
60-
61-
62-
#test_script:
63-
# - .\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -returntargetcode -register:user -target:"nunit3-console.exe" -targetargs:"MLAPI-Tests\bin\Debug\MLAPI-Tests.dll" -output:"coverage.xml" -filter:"+[MLAPI*]* -[MLAPI-Tests*]* "
69+
bash codecov.sh -f "coverage.xml"

0 commit comments

Comments
 (0)