From 86267ec372b450d2cc17782e573a6e2992b60c9a Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sat, 13 Apr 2019 13:22:42 +0100 Subject: [PATCH] Run C++ unit tests on AppVeyor Previously, these only ran on Travis. --- appveyor.yml | 8 ++++++++ test/test.props | 35 +++++++++++++++++++++++++++++++++++ test/test_shared_ptr.vcxproj | 11 +++++++++++ test/test_util_string.vcxproj | 11 +++++++++++ 4 files changed, 65 insertions(+) create mode 100644 test/test.props create mode 100644 test/test_shared_ptr.vcxproj create mode 100644 test/test_util_string.vcxproj diff --git a/appveyor.yml b/appveyor.yml index 8b083d6d3e..1ea704dcb9 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -69,6 +69,14 @@ test_script: git -C sass-spec checkout -q --force ci-spec-pr-$SPEC_PR } } + if ($env:Compiler -eq "mingw") { + Write-Host "Running libsass unit tests via mingw32-make..." + mingw32-make -C test test + } else { + Write-Host "Running libsass unit tests via msbuild..." + msbuild /m:4 /p:"Configuration=$env:Config;Platform=$env:Platform" test\test_shared_ptr.vcxproj + msbuild /m:4 /p:"Configuration=$env:Config;Platform=$env:Platform" test\test_util_string.vcxproj + } $env:TargetPath = Join-Path $pwd.Path $env:TargetPath If (Test-Path "$env:TargetPath") { ruby sass-spec/sass-spec.rb --probe-todo --impl libsass -c $env:TargetPath -s sass-spec/spec diff --git a/test/test.props b/test/test.props new file mode 100644 index 0000000000..5f0081e9b6 --- /dev/null +++ b/test/test.props @@ -0,0 +1,35 @@ + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + + Application + v120 + x64 + $(SolutionDir)\build\ + $(SolutionDir)\build\obj\$(Configuration)\$(MSBuildProjectName)\ + $(OutputPath) + True + + + + ../include;$(IncludePath) + + + diff --git a/test/test_shared_ptr.vcxproj b/test/test_shared_ptr.vcxproj new file mode 100644 index 0000000000..23f801ba11 --- /dev/null +++ b/test/test_shared_ptr.vcxproj @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/test/test_util_string.vcxproj b/test/test_util_string.vcxproj new file mode 100644 index 0000000000..b9e5326ab0 --- /dev/null +++ b/test/test_util_string.vcxproj @@ -0,0 +1,11 @@ + + + + + + + + + + +