aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2023-11-16 12:32:28 -0800
committerGitHub <noreply@github.com>2023-11-16 12:32:28 -0800
commit499750ad95899814500711776b57e3fabf800daa (patch)
treeaadb1917c83a802d4adda65d6a93a184655adf49
parent2e8a2a4e1c80c7c33bae29b6b3090c6b57617c28 (diff)
parentcd420ab193c15fa318f018a52e0405cb851e3d94 (diff)
downloadpugixml-499750ad95899814500711776b57e3fabf800daa.zip
pugixml-499750ad95899814500711776b57e3fabf800daa.tar.gz
pugixml-499750ad95899814500711776b57e3fabf800daa.tar.bz2
Merge pull request #596 from zeux/appvmp
AppVeyor build optimizations
-rw-r--r--appveyor.yml8
-rw-r--r--tests/autotest-appveyor.ps12
2 files changed, 7 insertions, 3 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 2f2c0e6..9b46193 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,3 +1,7 @@
+branches:
+ only:
+ - master
+
image:
- Visual Studio 2022
- Visual Studio 2019
@@ -18,8 +22,8 @@ test_script:
- ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2017") { .\tests\autotest-appveyor.ps1 15 }
- ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2019") { .\tests\autotest-appveyor.ps1 19 }
- ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2022") { .\tests\autotest-appveyor.ps1 22 }
- - ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015") { & C:\cygwin\bin\bash.exe -c "PATH=/usr/bin:/usr/local/bin:$PATH; make config=coverage test && bash <(curl -s https://codecov.io/bash) -f pugixml.cpp.gcov 2>&1" }
- - ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015") { & C:\cygwin\bin\bash.exe -c "PATH=/usr/bin:/usr/local/bin:$PATH; make config=coverage defines=PUGIXML_WCHAR_MODE test && bash <(curl -s https://codecov.io/bash) -f pugixml.cpp.gcov 2>&1" }
+ - ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015") { & C:\cygwin\bin\bash.exe -c "PATH=/usr/bin:/usr/local/bin:$PATH; make -j2 config=coverage test && bash <(curl -s https://codecov.io/bash) -f pugixml.cpp.gcov 2>&1" }
+ - ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015") { & C:\cygwin\bin\bash.exe -c "PATH=/usr/bin:/usr/local/bin:$PATH; make -j2 config=coverage defines=PUGIXML_WCHAR_MODE test && bash <(curl -s https://codecov.io/bash) -f pugixml.cpp.gcov 2>&1" }
artifacts:
- path: .\scripts\*.nupkg
diff --git a/tests/autotest-appveyor.ps1 b/tests/autotest-appveyor.ps1
index 24736ef..26d8e81 100644
--- a/tests/autotest-appveyor.ps1
+++ b/tests/autotest-appveyor.ps1
@@ -45,7 +45,7 @@ foreach ($vs in $args)
Add-AppveyorTest $target -Outcome Running
Write-Output "# Building $target.exe"
- & cmd /c "cl.exe /Fe$target.exe /EHsc /W4 /WX $deflist $sources 2>&1" | Tee-Object -Variable buildOutput
+ & cmd /c "cl.exe /MP /Fe$target.exe /EHsc /W4 /WX $deflist $sources 2>&1" | Tee-Object -Variable buildOutput
if ($?)
{