geom_gate userland utility improvements
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

110 lines
4.1 KiB

  1. # Copyright (c) 2014, Ruslan Baratov
  2. # Copyright (c) 2014, 2016 Alexander Lamaison
  3. # All rights reserved.
  4. #
  5. # Redistribution and use in source and binary forms, with or without
  6. # modification, are permitted provided that the following conditions are met:
  7. #
  8. # * Redistributions of source code must retain the above copyright notice, this
  9. # list of conditions and the following disclaimer.
  10. #
  11. # * Redistributions in binary form must reproduce the above copyright notice,
  12. # this list of conditions and the following disclaimer in the documentation
  13. # and/or other materials provided with the distribution.
  14. #
  15. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  16. # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  17. # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  18. # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  19. # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  20. # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  21. # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  22. # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  23. # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  24. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  25. os: Visual Studio 2015
  26. environment:
  27. matrix:
  28. - GENERATOR: "Visual Studio 14 2015"
  29. BUILD_SHARED_LIBS: ON
  30. CRYPTO_BACKEND: "OpenSSL"
  31. - GENERATOR: "Visual Studio 14 2015"
  32. BUILD_SHARED_LIBS: OFF
  33. CRYPTO_BACKEND: "OpenSSL"
  34. - GENERATOR: "Visual Studio 12 2013"
  35. BUILD_SHARED_LIBS: ON
  36. CRYPTO_BACKEND: "OpenSSL"
  37. - GENERATOR: "Visual Studio 12 2013"
  38. BUILD_SHARED_LIBS: OFF
  39. CRYPTO_BACKEND: "OpenSSL"
  40. - GENERATOR: "Visual Studio 14 2015"
  41. BUILD_SHARED_LIBS: ON
  42. CRYPTO_BACKEND: "WinCNG"
  43. - GENERATOR: "Visual Studio 14 2015"
  44. BUILD_SHARED_LIBS: OFF
  45. CRYPTO_BACKEND: "WinCNG"
  46. - GENERATOR: "Visual Studio 12 2013"
  47. BUILD_SHARED_LIBS: ON
  48. CRYPTO_BACKEND: "WinCNG"
  49. - GENERATOR: "Visual Studio 12 2013"
  50. BUILD_SHARED_LIBS: OFF
  51. CRYPTO_BACKEND: "WinCNG"
  52. digitalocean_access_token:
  53. secure: 8qRitvrj69Xhf0Tmu27xnz5drmL2YhmOJLGpXIkYyTCC0JNtBoXW6fMcF3u4Uj1+pIQ+TjegQOwYimlz0oivKTro3v3EXro+osAMNJG6NKc=
  54. platform:
  55. - x86
  56. - x64
  57. configuration:
  58. # - Debug
  59. - Release
  60. matrix:
  61. fast_finish: true
  62. allow_failures:
  63. - GENERATOR: "Visual Studio 9 2008"
  64. platform: x64
  65. install:
  66. - choco install -y docker
  67. - choco install -y docker-machine
  68. build_script:
  69. - ps: if($env:PLATFORM -eq "x64") { $env:CMAKE_GEN_SUFFIX=" Win64" }
  70. - cmake "-G%GENERATOR%%CMAKE_GEN_SUFFIX%" -DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS% -DCRYPTO_BACKEND=%CRYPTO_BACKEND% -H. -B_builds
  71. - cmake --build _builds --config "%CONFIGURATION%"
  72. before_test:
  73. - set DOCKER_MACHINE_NAME=appveyor-%APPVEYOR_PROJECT_SLUG%-%APPVEYOR_JOB_ID%
  74. - ps: if($env:digitalocean_access_token) { echo "Using DigitalOcean for testing." } else { echo "DigitalOcean not available. Skipping testing." }
  75. - ps: if($env:digitalocean_access_token) { docker-machine create --driver digitalocean --digitalocean-access-token $($env:digitalocean_access_token) $($env:DOCKER_MACHINE_NAME) }
  76. - ps: if($env:digitalocean_access_token) { docker-machine env $($env:DOCKER_MACHINE_NAME) --shell powershell | Invoke-Expression }
  77. test_script:
  78. - ps: cd _builds
  79. - ps: if($env:digitalocean_access_token) { ctest -VV -C $($env:CONFIGURATION) --output-on-failure }
  80. after_test:
  81. - ps: if($env:digitalocean_access_token) { docker-machine rm -y $($env:DOCKER_MACHINE_NAME) }
  82. on_failure:
  83. - ps: if($env:digitalocean_access_token) { docker-machine rm -y $($env:DOCKER_MACHINE_NAME) }
  84. - ps: if(Test-Path _builds/CMakeFiles/CMakeOutput.log) { cat _builds/CMakeFiles/CMakeOutput.log }
  85. - ps: if(Test-Path _builds/CMakeFiles/CMakeError.log) { cat _builds/CMakeFiles/CMakeError.log }
  86. # whitelist branches to avoid testing feature branches twice (as branch and as pull request)
  87. branches:
  88. only:
  89. - master