Back to home page

sPhenix code displayed by LXR

 
 

    


Warning, /JETSCAPE/external_packages/googletest/appveyor.yml is written in an unsupported language. File is not indexed.

0001 version: '{build}'
0002 
0003 os: Visual Studio 2015
0004 
0005 environment:
0006   matrix:
0007   - Toolset: v140
0008   - Toolset: v120
0009   - Toolset: v110
0010   - Toolset: v100
0011 
0012 platform:
0013   - Win32
0014   - x64
0015 
0016 configuration:
0017 #  - Release
0018   - Debug
0019 
0020 build:
0021   verbosity: minimal
0022 
0023 artifacts:
0024   - path: '_build/Testing/Temporary/*'
0025     name: test_results
0026 
0027 before_build:
0028 - ps: |
0029     Write-Output "Configuration: $env:CONFIGURATION"
0030     Write-Output "Platform: $env:PLATFORM"
0031     $generator = switch ($env:TOOLSET)
0032     {
0033         "v140" {"Visual Studio 14 2015"}
0034         "v120" {"Visual Studio 12 2013"}
0035         "v110" {"Visual Studio 11 2012"}
0036         "v100" {"Visual Studio 10 2010"}
0037     }
0038     if ($env:PLATFORM -eq "x64")
0039     {
0040         $generator = "$generator Win64"
0041     }
0042 
0043 build_script:
0044 - ps: |
0045     if (($env:TOOLSET -eq "v100") -and ($env:PLATFORM -eq "x64"))
0046     {
0047         return
0048     }
0049     md _build -Force | Out-Null
0050     cd _build
0051 
0052     & cmake -G "$generator" -DCMAKE_CONFIGURATION_TYPES="Debug;Release" -Dgtest_build_tests=ON -Dgtest_build_samples=ON -Dgmock_build_tests=ON ..
0053     if ($LastExitCode -ne 0) {
0054         throw "Exec: $ErrorMessage"
0055     }
0056     & cmake --build . --config $env:CONFIGURATION
0057     if ($LastExitCode -ne 0) {
0058         throw "Exec: $ErrorMessage"
0059     }
0060 
0061 test_script:
0062 - ps: |
0063     if (($env:Toolset -eq "v100") -and ($env:PLATFORM -eq "x64"))
0064     {
0065         return
0066     }
0067 
0068     & ctest -C $env:CONFIGURATION --output-on-failure
0069     if ($LastExitCode -ne 0) {
0070         throw "Exec: $ErrorMessage"
0071     }