2
0

appveyor.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. image:
  2. - Visual Studio 2017
  3. platform:
  4. - x64
  5. - x86
  6. environment:
  7. fast_finish: true
  8. matrix:
  9. - VSVER: 15
  10. configuration:
  11. - shared
  12. - minimal
  13. for:
  14. -
  15. branches:
  16. only:
  17. - master
  18. configuration:
  19. - shared
  20. - plain
  21. - minimal
  22. before_build:
  23. - ps: >-
  24. Install-Module VSSetup -Scope CurrentUser
  25. - ps: >-
  26. Get-VSSetupInstance -All
  27. - ps: >-
  28. If ($env:Platform -Match "x86") {
  29. $env:VCVARS_PLATFORM="x86"
  30. $env:TARGET="VC-WIN32 no-asm --strict-warnings"
  31. } Else {
  32. $env:VCVARS_PLATFORM="amd64"
  33. $env:TARGET="VC-WIN64A-masm"
  34. }
  35. - ps: >-
  36. If ($env:Configuration -Match "shared") {
  37. $env:CONFIG_OPTS="enable-fips"
  38. } ElseIf ($env:Configuration -Match "minimal") {
  39. $env:CONFIG_OPTS="no-bulk no-asm -DOPENSSL_SMALL_FOOTPRINT"
  40. } Else {
  41. $env:CONFIG_OPTS="no-fips no-shared"
  42. }
  43. - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %VCVARS_PLATFORM%
  44. - mkdir _build
  45. - cd _build
  46. - perl ..\Configure %TARGET% no-makedepend %CONFIG_OPTS%
  47. - perl configdata.pm --dump
  48. - cd ..
  49. - ps: >-
  50. If ($env:BUILDONLY -or $env:MAKEVERBOSE) {
  51. $env:NMAKE="nmake"
  52. } Else {
  53. $env:NMAKE="nmake /S"
  54. }
  55. - ps: >-
  56. gci env:* | sort-object name
  57. build_script:
  58. - cd _build
  59. - "%NMAKE% build_all_generated"
  60. - "%NMAKE% PERL=no-perl"
  61. - cd ..
  62. test_script:
  63. - cd _build
  64. - ps: >-
  65. if ($env:Configuration -Match "plain") {
  66. cmd /c "%NMAKE% test VERBOSE_FAILURE=yes 2>&1"
  67. } Else {
  68. cmd /c "%NMAKE% test VERBOSE_FAILURE=yes TESTS=-test_fuzz 2>&1"
  69. }
  70. - ps: >-
  71. if ($env:Configuration -Match "shared") {
  72. mkdir ..\_install
  73. cmd /c "%NMAKE% install DESTDIR=..\_install 2>&1"
  74. }
  75. - cd ..