Advertisement
Guest User

appveyor.yml

a guest
Oct 14th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. platform:
  2. - x64
  3.  
  4. environment:
  5. fast_finish: true
  6. matrix:
  7. - VSVER: 14
  8.  
  9. configuration:
  10. - shared
  11.  
  12. before_build:
  13. - ps: >-
  14. If ($env:Platform -Match "x64") {
  15. $env:VCVARS_PLATFORM="amd64"
  16. $env:TARGET="VC-WIN64A-masm"
  17. }
  18. - ps: >-
  19. If ($env:Configuration -Match "shared") {
  20. $env:SHARED="no-makedepend"
  21. }
  22. - ps: $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:VSVER" + "0COMNTOOLS"))
  23. - call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" %VCVARS_PLATFORM%
  24. - mkdir _build
  25. - cd _build
  26. - perl ..\Configure %TARGET% %SHARED%
  27. - perl configdata.pm --dump
  28. - cd ..
  29. - ps: >-
  30. if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER`
  31. -or (&git log -2 | Select-String "\[extended tests\]") ) {
  32. $env:EXTENDED_TESTS="yes"
  33. }
  34.  
  35. build_script:
  36. - cd _build
  37. - ps: >-
  38. If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
  39. cmd /c "nmake build_all_generated 2>&1"
  40. cmd /c "nmake PERL=no-perl 2>&1"
  41. }
  42. - cd ..
  43.  
  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 HARNESS_VERBOSE_FAILURE=yes 2>&1"
  50. } Else {
  51. cmd /c "nmake test HARNESS_VERBOSE_FAILURE=yes TESTS=-test_fuzz 2>&1"
  52. }
  53. }
  54. - ps: >-
  55. if ($env:EXTENDED_TESTS) {
  56. mkdir ..\_install
  57. cmd /c "nmake install DESTDIR=..\_install 2>&1"
  58. }
  59. - cd ..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement