2
0

appveyor.yml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. - plain
  13. - minimal
  14. before_build:
  15. - ps: >-
  16. Install-Module VSSetup -Scope CurrentUser
  17. - ps: >-
  18. Get-VSSetupInstance -All
  19. - ps: >-
  20. gci env:* | sort-object name
  21. - ps: >-
  22. If ($env:Platform -Match "x86") {
  23. $env:VCVARS_PLATFORM="x86"
  24. $env:TARGET="VC-WIN32 no-asm --strict-warnings"
  25. } Else {
  26. $env:VCVARS_PLATFORM="amd64"
  27. $env:TARGET="VC-WIN64A-masm"
  28. }
  29. - ps: >-
  30. If ($env:Configuration -Match "shared") {
  31. $env:SHARED="no-makedepend"
  32. } ElseIf ($env:Configuration -Match "minimal") {
  33. $env:SHARED="no-shared no-dso no-makedepend no-aria no-async no-autoload-config no-blake2 no-bf no-camellia no-cast no-chacha no-cmac no-cms no-cmp no-comp no-ct no-des no-dgram no-dh no-dsa no-dtls no-ec2m no-engine no-filenames no-gost no-idea no-ktls no-mdc2 no-md4 no-multiblock no-nextprotoneg no-ocsp no-ocb no-poly1305 no-psk no-rc2 no-rc4 no-rmd160 no-seed no-siphash no-siv no-sm2 no-sm3 no-sm4 no-srp no-srtp no-ssl3 no-ssl3-method no-ts no-ui-console no-whirlpool no-asm -DOPENSSL_SMALL_FOOTPRINT"
  34. } Else {
  35. $env:SHARED="no-shared no-makedepend"
  36. }
  37. - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %VCVARS_PLATFORM%
  38. - mkdir _build
  39. - cd _build
  40. - perl ..\Configure %TARGET% %SHARED%
  41. - perl configdata.pm --dump
  42. - cd ..
  43. - ps: >-
  44. if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER`
  45. -or (&git log -2 | Select-String "\[extended tests\]") ) {
  46. $env:EXTENDED_TESTS="yes"
  47. }
  48. build_script:
  49. - cd _build
  50. - ps: >-
  51. If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
  52. cmd /c "nmake build_all_generated 2>&1"
  53. cmd /c "nmake PERL=no-perl 2>&1"
  54. }
  55. - cd ..
  56. test_script:
  57. - cd _build
  58. - ps: >-
  59. If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
  60. if ($env:EXTENDED_TESTS) {
  61. cmd /c "nmake test HARNESS_VERBOSE_FAILURE=yes 2>&1"
  62. } Else {
  63. cmd /c "nmake test HARNESS_VERBOSE_FAILURE=yes TESTS=-test_fuzz 2>&1"
  64. }
  65. }
  66. - ps: >-
  67. if ($env:EXTENDED_TESTS) {
  68. mkdir ..\_install
  69. cmd /c "nmake install DESTDIR=..\_install 2>&1"
  70. }
  71. - cd ..