Skip to content
This repository has been archived by the owner on Aug 25, 2018. It is now read-only.

Commit

Permalink
[AppVeyor] Use %CONFIGURATION% environment variable with CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
mloskot committed Sep 21, 2017
1 parent eb14253 commit 9118e9c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,14 @@ before_build:
build_script:
- ps: 'Write-Host "Running cmake: $env:G" -ForegroundColor Magenta'
- cmake.exe -G "%G%" -DCMAKE_BUILD_TYPE=Release -DNANODBC_ENABLE_BOOST=%ENABLE_BOOST% -DNANODBC_ENABLE_UNICODE=%ENABLE_UNICODE% -DNANODBC_DISABLE_ASYNC=%DISABLE_ASYNC% -DNANODBC_DISABLE_EXAMPLES=%DISABLE_EXAMPLES% -DNANODBC_DISABLE_TESTS=%DISABLE_TESTS% -DNANODBC_DISABLE_INSTALL=%DISABLE_INSTALL% %APPVEYOR_BUILD_FOLDER%
- cmake.exe -G "%G%" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DNANODBC_ENABLE_BOOST=%ENABLE_BOOST% -DNANODBC_ENABLE_UNICODE=%ENABLE_UNICODE% -DNANODBC_DISABLE_ASYNC=%DISABLE_ASYNC% -DNANODBC_DISABLE_EXAMPLES=%DISABLE_EXAMPLES% -DNANODBC_DISABLE_TESTS=%DISABLE_TESTS% -DNANODBC_DISABLE_INSTALL=%DISABLE_INSTALL% %APPVEYOR_BUILD_FOLDER%
- ps: 'Write-Host "Running cmake --build:" -ForegroundColor Magenta'
- cmake --build . --config Release -- %MSBUILD_ARGS%
- cmake --build . --config %CONFIGURATION% -- %MSBUILD_ARGS%

before_test:
- ps: |
if ($env:ANALYSIS) {
Write-Host "Skipping database services configuration" -ForegroundColor Magenta
Write-Host "Static analysis, skipping database services configuration" -ForegroundColor Magenta
} else {
Write-Host "Configuring $env:DB service" -ForegroundColor Magenta
if ($env:DB -Match "MSSQL2008") {
Expand Down Expand Up @@ -168,7 +168,7 @@ before_test:
test_script:
- ps: |
if ($env:ANALYSIS) {
Write-Host "Skipping tests" -ForegroundColor Magenta
Write-Host "Static analysis, skipping tests" -ForegroundColor Magenta
} else {
if ($env:DB -Match "MSSQL2008") {
$env:NANODBC_TEST_CONNSTR_MSSQL="Driver={ODBC Driver 11 for SQL Server};Server=(local)\SQL2008R2SP2;Database=master;UID=sa;PWD=Password12!;"
Expand Down

0 comments on commit 9118e9c

Please sign in to comment.