appveyor.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. # appveyor configuration
  2. version: '{build}'
  3. # Limit history cloned. This matches what travis-CI currently does.
  4. clone_depth: 50
  5. environment:
  6. matrix:
  7. - GENERATOR: Visual Studio 12 Win64
  8. BITS: 64
  9. - GENERATOR: Visual Studio 12
  10. BITS: 32
  11. cache:
  12. - c:\deps -> appveyor.yml
  13. # borrowed from https://github.com/FreeTDS/freetds
  14. install:
  15. # xidel (xpath command line tool)
  16. - appveyor DownloadFile "https://downloads.sourceforge.net/project/videlibri/Xidel/Xidel 0.9.6/xidel-0.9.6.win32.zip"
  17. - 7z x xidel-0.9.6.win32.zip xidel.exe
  18. # detect version of Windows OpenSSL binaries published by the Shining Light Productions crew
  19. - xidel https://slproweb.com/products/Win32OpenSSL.html --extract "(//td/a[starts-with(@href, '/download') and starts-with(text(), 'Win32 OpenSSL') and ends-with(text(), 'Light')])[1]/translate(substring-before(substring-after(text(), 'Win32 OpenSSL v'), ' Light'), '.', '_')" > openssl_ver.txt
  20. - set /P OPENSSL_VER=< openssl_ver.txt
  21. # OpenSSL
  22. - appveyor DownloadFile https://slproweb.com/download/Win%BITS%OpenSSL-%OPENSSL_VER%.exe
  23. - "Win%BITS%OpenSSL-%OPENSSL_VER%.exe /SP- /SILENT /SUPPRESSMSGBOXES /NORESTART"
  24. before_build:
  25. - cmake -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=ON -DBUILD_TESTS=ON -DENABLE_SSL_SUPPORT=True -G"%GENERATOR%" .
  26. build:
  27. project: ALL_BUILD.vcxproj
  28. verbosity: normal