appveyor.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. platform:
  2. - x64
  3. - x86
  4. environment:
  5. fast_finish: true
  6. matrix:
  7. - VSVER: 14
  8. configuration:
  9. - shared
  10. - plain
  11. before_build:
  12. - ps: >-
  13. If ($env:Platform -Match "x86") {
  14. $env:VCVARS_PLATFORM="x86"
  15. $env:TARGET="VC-WIN32 no-asm"
  16. } Else {
  17. $env:VCVARS_PLATFORM="amd64"
  18. $env:TARGET="VC-WIN64A-masm"
  19. }
  20. - ps: >-
  21. If ($env:Configuration -Match "shared") {
  22. $env:SHARED=""
  23. } Else {
  24. $env:SHARED="no-shared"
  25. }
  26. - ps: $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:VSVER" + "0COMNTOOLS"))
  27. - call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" %VCVARS_PLATFORM%
  28. - mkdir _build
  29. - cd _build
  30. - perl ..\Configure %TARGET% %SHARED%
  31. - cd ..
  32. - ps: >-
  33. if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER`
  34. -or (&git log -2 | Select-String "\[extended tests\]") ) {
  35. $env:EXTENDED_TESTS="yes"
  36. }
  37. build_script:
  38. - cd _build
  39. - ps: >-
  40. If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
  41. cmd /c "nmake 2>&1"
  42. }
  43. - cd ..
  44. test_script:
  45. - cd _build
  46. - ps: >-
  47. If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
  48. if ($env:EXTENDED_TESTS) {
  49. cmd /c "nmake test V=1 2>&1"
  50. } Else {
  51. cmd /c "nmake test V=1 TESTS=-test_fuzz 2>&1"
  52. }
  53. }
  54. - ps: >-
  55. if ($env:EXTENDED_TESTS) {
  56. mkdir ..\_install
  57. cmd /c "nmake install install_docs DESTDIR=..\_install 2>&1"
  58. }
  59. - cd ..
  60. notifications:
  61. - provider: Email
  62. to:
  63. - openssl-commits@openssl.org
  64. on_build_success: false
  65. on_build_failure: true
  66. on_build_status_changed: true