Merge pull request #2845 from senhuang42/appveyor_msvc2
Move visual studio tests from per-release to per-PR
This commit is contained in:
@@ -332,6 +332,31 @@ jobs:
|
|||||||
make clean
|
make clean
|
||||||
make check
|
make check
|
||||||
|
|
||||||
|
|
||||||
|
visual-runtime-tests:
|
||||||
|
runs-on: windows-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
platform: [x64, Win32]
|
||||||
|
configuration: [Release]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Add MSBuild to PATH
|
||||||
|
uses: microsoft/setup-msbuild@v1.0.2
|
||||||
|
- name: Build and run tests
|
||||||
|
working-directory: ${{env.GITHUB_WORKSPACE}}
|
||||||
|
env:
|
||||||
|
ZSTD_BIN: ./zstd.exe
|
||||||
|
DATAGEN_BIN: ./datagen.exe
|
||||||
|
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
|
||||||
|
run: |
|
||||||
|
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v142 /t:Clean,Build /p:Platform=${{matrix.platform}} /p:Configuration=${{matrix.configuration}}
|
||||||
|
COPY build\VS2010\bin\${{matrix.platform}}_${{matrix.configuration}}\*.exe tests\
|
||||||
|
CD tests
|
||||||
|
sh -e playTests.sh
|
||||||
|
DIR
|
||||||
|
.\fuzzer.exe -T2m
|
||||||
|
|
||||||
# This test currently fails on Github Actions specifically.
|
# This test currently fails on Github Actions specifically.
|
||||||
# Possible reason : TTY emulation.
|
# Possible reason : TTY emulation.
|
||||||
# Note that the same test works fine locally and on travisCI.
|
# Note that the same test works fine locally and on travisCI.
|
||||||
|
|||||||
+30
-69
@@ -24,23 +24,6 @@
|
|||||||
ARTIFACT: "true"
|
ARTIFACT: "true"
|
||||||
BUILD: "true"
|
BUILD: "true"
|
||||||
|
|
||||||
- COMPILER: "visual"
|
|
||||||
HOST: "visual"
|
|
||||||
PLATFORM: "x64"
|
|
||||||
CONFIGURATION: "Debug"
|
|
||||||
- COMPILER: "visual"
|
|
||||||
HOST: "visual"
|
|
||||||
PLATFORM: "Win32"
|
|
||||||
CONFIGURATION: "Debug"
|
|
||||||
- COMPILER: "visual"
|
|
||||||
HOST: "visual"
|
|
||||||
PLATFORM: "x64"
|
|
||||||
CONFIGURATION: "Release"
|
|
||||||
- COMPILER: "visual"
|
|
||||||
HOST: "visual"
|
|
||||||
PLATFORM: "Win32"
|
|
||||||
CONFIGURATION: "Release"
|
|
||||||
|
|
||||||
- COMPILER: "clang-cl"
|
- COMPILER: "clang-cl"
|
||||||
HOST: "cmake-visual"
|
HOST: "cmake-visual"
|
||||||
PLATFORM: "x64"
|
PLATFORM: "x64"
|
||||||
@@ -102,46 +85,6 @@
|
|||||||
appveyor PushArtifact zstd-win-release-%PLATFORM%.zip
|
appveyor PushArtifact zstd-win-release-%PLATFORM%.zip
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
- if [%HOST%]==[visual] (
|
|
||||||
ECHO *** &&
|
|
||||||
ECHO *** Building Visual Studio 2008 %PLATFORM%\%CONFIGURATION% in %APPVEYOR_BUILD_FOLDER% &&
|
|
||||||
ECHO *** &&
|
|
||||||
msbuild "build\VS2008\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v90 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
|
||||||
DIR build\VS2008\bin\%PLATFORM%\%CONFIGURATION%\*.exe &&
|
|
||||||
MD5sum build/VS2008/bin/%PLATFORM%/%CONFIGURATION%/*.exe &&
|
|
||||||
COPY build\VS2008\bin\%PLATFORM%\%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2008_%PLATFORM%_%CONFIGURATION%.exe &&
|
|
||||||
ECHO *** &&
|
|
||||||
ECHO *** Building Visual Studio 2010 %PLATFORM%\%CONFIGURATION% &&
|
|
||||||
ECHO *** &&
|
|
||||||
msbuild "build\VS2010\zstd.sln" %ADDITIONALPARAM% /m /verbosity:minimal /property:PlatformToolset=v100 /p:ForceImportBeforeCppTargets=%APPVEYOR_BUILD_FOLDER%\build\VS2010\CompileAsCpp.props /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
|
||||||
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
|
||||||
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
|
||||||
msbuild "build\VS2010\zstd.sln" %ADDITIONALPARAM% /m /verbosity:minimal /property:PlatformToolset=v100 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
|
||||||
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
|
||||||
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
|
||||||
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2010_%PLATFORM%_%CONFIGURATION%.exe &&
|
|
||||||
ECHO *** &&
|
|
||||||
ECHO *** Building Visual Studio 2012 %PLATFORM%\%CONFIGURATION% &&
|
|
||||||
ECHO *** &&
|
|
||||||
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v110 /p:ForceImportBeforeCppTargets=%APPVEYOR_BUILD_FOLDER%\build\VS2010\CompileAsCpp.props /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
|
||||||
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
|
||||||
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
|
||||||
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v110 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
|
||||||
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
|
||||||
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
|
||||||
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2012_%PLATFORM%_%CONFIGURATION%.exe &&
|
|
||||||
ECHO *** &&
|
|
||||||
ECHO *** Building Visual Studio 2013 %PLATFORM%\%CONFIGURATION% &&
|
|
||||||
ECHO *** &&
|
|
||||||
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v120 /p:ForceImportBeforeCppTargets=%APPVEYOR_BUILD_FOLDER%\build\VS2010\CompileAsCpp.props /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
|
||||||
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
|
||||||
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
|
||||||
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v120 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
|
||||||
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
|
||||||
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
|
||||||
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2013_%PLATFORM%_%CONFIGURATION%.exe &&
|
|
||||||
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe tests\
|
|
||||||
)
|
|
||||||
- if [%HOST%]==[cmake-visual] (
|
- if [%HOST%]==[cmake-visual] (
|
||||||
ECHO *** &&
|
ECHO *** &&
|
||||||
ECHO *** Building %CMAKE_GENERATOR% ^(%CMAKE_GENERATOR_TOOLSET%^) %PLATFORM%\%CONFIGURATION% &&
|
ECHO *** Building %CMAKE_GENERATOR% ^(%CMAKE_GENERATOR_TOOLSET%^) %PLATFORM%\%CONFIGURATION% &&
|
||||||
@@ -165,18 +108,6 @@
|
|||||||
cd ..\..\.. &&
|
cd ..\..\.. &&
|
||||||
make clean
|
make clean
|
||||||
)
|
)
|
||||||
- SET "FUZZERTEST=-T30s"
|
|
||||||
- if [%HOST%]==[visual] if [%CONFIGURATION%]==[Release] (
|
|
||||||
CD tests &&
|
|
||||||
SET ZSTD_BIN=./zstd.exe&&
|
|
||||||
SET DATAGEN_BIN=./datagen.exe&&
|
|
||||||
sh -e playTests.sh --test-large-data &&
|
|
||||||
fullbench.exe -i1 &&
|
|
||||||
fullbench.exe -i1 -P0 &&
|
|
||||||
fuzzer_VS2012_%PLATFORM%_Release.exe %FUZZERTEST% &&
|
|
||||||
fuzzer_VS2013_%PLATFORM%_Release.exe %FUZZERTEST% &&
|
|
||||||
fuzzer_VS2015_%PLATFORM%_Release.exe %FUZZERTEST%
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
# The following tests are for regular pushes
|
# The following tests are for regular pushes
|
||||||
@@ -187,6 +118,23 @@
|
|||||||
version: 1.0.{build}
|
version: 1.0.{build}
|
||||||
environment:
|
environment:
|
||||||
matrix:
|
matrix:
|
||||||
|
- COMPILER: "visual"
|
||||||
|
HOST: "visual"
|
||||||
|
PLATFORM: "x64"
|
||||||
|
CONFIGURATION: "Debug"
|
||||||
|
- COMPILER: "visual"
|
||||||
|
HOST: "visual"
|
||||||
|
PLATFORM: "Win32"
|
||||||
|
CONFIGURATION: "Debug"
|
||||||
|
- COMPILER: "visual"
|
||||||
|
HOST: "visual"
|
||||||
|
PLATFORM: "x64"
|
||||||
|
CONFIGURATION: "Release"
|
||||||
|
- COMPILER: "visual"
|
||||||
|
HOST: "visual"
|
||||||
|
PLATFORM: "Win32"
|
||||||
|
CONFIGURATION: "Release"
|
||||||
|
|
||||||
- COMPILER: "gcc"
|
- COMPILER: "gcc"
|
||||||
HOST: "cygwin"
|
HOST: "cygwin"
|
||||||
PLATFORM: "x64"
|
PLATFORM: "x64"
|
||||||
@@ -210,6 +158,9 @@
|
|||||||
cmake,^
|
cmake,^
|
||||||
make
|
make
|
||||||
)
|
)
|
||||||
|
- IF [%HOST%]==[visual] IF [%PLATFORM%]==[x64] (
|
||||||
|
SET ADDITIONALPARAM=/p:LibraryPath="C:\Program Files\Microsoft SDKs\Windows\v7.1\lib\x64;c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64;C:\Program Files (x86)\Microsoft Visual Studio 10.0\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\lib\amd64;"
|
||||||
|
)
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- ECHO Building %COMPILER% %PLATFORM% %CONFIGURATION%
|
- ECHO Building %COMPILER% %PLATFORM% %CONFIGURATION%
|
||||||
@@ -233,10 +184,20 @@
|
|||||||
POPD &&
|
POPD &&
|
||||||
ECHO ***
|
ECHO ***
|
||||||
)
|
)
|
||||||
|
- if [%HOST%]==[visual] (
|
||||||
|
ECHO *** &&
|
||||||
|
ECHO *** Building Visual Studio 2012 %PLATFORM%\%CONFIGURATION% &&
|
||||||
|
ECHO *** &&
|
||||||
|
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v110 /p:ForceImportBeforeCppTargets=%APPVEYOR_BUILD_FOLDER%\build\VS2010\CompileAsCpp.props /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
||||||
|
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
||||||
|
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v110 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
||||||
|
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- ECHO Testing %COMPILER% %PLATFORM% %CONFIGURATION%
|
- ECHO Testing %COMPILER% %PLATFORM% %CONFIGURATION%
|
||||||
|
- SET "FUZZERTEST=-T10s"
|
||||||
- if [%HOST%]==[mingw] (
|
- if [%HOST%]==[mingw] (
|
||||||
set "CC=%COMPILER%" &&
|
set "CC=%COMPILER%" &&
|
||||||
make clean &&
|
make clean &&
|
||||||
|
|||||||
Reference in New Issue
Block a user