2
0

appveyor.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 --strict-warnings"
  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="no-makedepend"
  23. } Else {
  24. $env:SHARED="no-shared no-makedepend"
  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. - perl configdata.pm --dump
  32. - cd ..
  33. - ps: >-
  34. if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER`
  35. -or (&git log -2 | Select-String "\[extended tests\]") ) {
  36. $env:EXTENDED_TESTS="yes"
  37. }
  38. build_script:
  39. - cd _build
  40. - ps: >-
  41. If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
  42. cmd /c "nmake build_all_generated 2>&1"
  43. cmd /c "nmake PERL=no-perl 2>&1"
  44. }
  45. - cd ..
  46. test_script:
  47. - cd _build
  48. - ps: >-
  49. If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
  50. if ($env:EXTENDED_TESTS) {
  51. cmd /c "nmake test HARNESS_VERBOSE_FAILURE=yes 2>&1"
  52. } Else {
  53. cmd /c "nmake test HARNESS_VERBOSE_FAILURE=yes TESTS=-test_fuzz 2>&1"
  54. }
  55. }
  56. - ps: >-
  57. if ($env:EXTENDED_TESTS) {
  58. mkdir ..\_install
  59. cmd /c "nmake install DESTDIR=..\_install 2>&1"
  60. }
  61. - cd ..