appveyor.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. - ps: >-
  39. If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
  40. cd _build
  41. cmd /c "nmake 2>&1"
  42. cd ..
  43. }
  44. test_script:
  45. - ps: >-
  46. If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
  47. cd _build
  48. if ($env:EXTENDED_TESTS) {
  49. cmd /c "nmake test V=1 2>&1"
  50. mkdir ..\_install
  51. cmd /c "nmake install install_docs DESTDIR=..\_install 2>&1"
  52. } Else {
  53. cmd /c "nmake test V=1 TESTS=-test_fuzz 2>&1"
  54. }
  55. cd ..
  56. }
  57. notifications:
  58. - provider: Email
  59. to:
  60. - openssl-commits@openssl.org
  61. on_build_success: false
  62. on_build_failure: true
  63. on_build_status_changed: true