2
0

appveyor.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # Appveyor configuration file for CI build of hiredis on Windows (under Cygwin)
  2. environment:
  3. matrix:
  4. - CYG_ROOT: C:\cygwin64
  5. CYG_SETUP: setup-x86_64.exe
  6. CYG_MIRROR: http://cygwin.mirror.constant.com
  7. CYG_CACHE: C:\cygwin64\var\cache\setup
  8. CYG_BASH: C:\cygwin64\bin\bash
  9. CC: gcc
  10. - CYG_ROOT: C:\cygwin
  11. CYG_SETUP: setup-x86.exe
  12. CYG_MIRROR: http://cygwin.mirror.constant.com
  13. CYG_CACHE: C:\cygwin\var\cache\setup
  14. CYG_BASH: C:\cygwin\bin\bash
  15. CC: gcc
  16. TARGET: 32bit
  17. TARGET_VARS: 32bit-vars
  18. # Cache Cygwin files to speed up build
  19. cache:
  20. - '%CYG_CACHE%'
  21. clone_depth: 1
  22. # Attempt to ensure we don't try to convert line endings to Win32 CRLF as this will cause build to fail
  23. init:
  24. - git config --global core.autocrlf input
  25. # Install needed build dependencies
  26. install:
  27. - ps: 'Start-FileDownload "http://cygwin.com/$env:CYG_SETUP" -FileName "$env:CYG_SETUP"'
  28. - '%CYG_SETUP% --quiet-mode --no-shortcuts --only-site --root "%CYG_ROOT%" --site "%CYG_MIRROR%" --local-package-dir "%CYG_CACHE%" --packages automake,bison,gcc-core,libtool,make,gettext-devel,gettext,intltool,pkg-config,clang,llvm > NUL 2>&1'
  29. - '%CYG_BASH% -lc "cygcheck -dc cygwin"'
  30. build_script:
  31. - 'echo building...'
  32. - '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; make LDFLAGS=$LDFLAGS CC=$CC $TARGET CFLAGS=$CFLAGS && make LDFLAGS=$LDFLAGS CC=$CC $TARGET_VARS hiredis-example"'