appveyor.yml 942 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. platform:
  2. - x86
  3. - x64
  4. environment:
  5. matrix:
  6. - VSVER: 14
  7. configuration:
  8. - plain
  9. - shared
  10. before_build:
  11. - ps: >-
  12. If ($env:Platform -Match "x86") {
  13. $env:VCVARS_PLATFORM="x86"
  14. $env:TARGET="VC-WIN32"
  15. } Else {
  16. $env:VCVARS_PLATFORM="amd64"
  17. $env:TARGET="VC-WIN64A"
  18. }
  19. - ps: >-
  20. If ($env:Configuration -Match "shared") {
  21. $env:SHARED=""
  22. } Else {
  23. $env:SHARED="no-shared"
  24. }
  25. - ps: $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:VSVER" + "0COMNTOOLS"))
  26. - call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" %VCVARS_PLATFORM%
  27. - mkdir _build
  28. - cd _build
  29. - perl ..\Configure %TARGET% no-asm %SHARED%
  30. - cd ..
  31. build_script:
  32. - cd _build
  33. - nmake
  34. - cd ..
  35. test_script:
  36. - cd _build
  37. - nmake test
  38. - mkdir ..\_install
  39. - nmake install DESTDIR=..\_install
  40. - cd ..