appveyor.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # AppVeyor CI Configuration
  2. #
  3. # Current build status can be viewed at
  4. # https://ci.appveyor.com/project/dgibson/ccan
  5. #
  6. # To build test a fork of this repository using AppVeyor:
  7. # 1. Visit appveyor.com and create a free account.
  8. # 2. On the Projects tab, select "New Project" then the project hosting site.
  9. # 3. Grant OAuth permissions to your project git host.
  10. # 4. Select the repository for your project fork.
  11. # 5. Review build results and push updates until the desired result is reached.
  12. version: 0.0.{build}
  13. platform:
  14. - x86
  15. - amd64
  16. build_script:
  17. # Reset %PATH% to avoid msys/cygwin DLL conflicts which cause
  18. # *** fatal error - cygheap base mismatch detected
  19. - set PATH=C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;C:\msys64\usr\bin
  20. # Set environment variables for chosen compiler
  21. - "\"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\vcvarsall.bat\" %Platform%"
  22. # Ensure config.h can be generated.
  23. # Note: Dash options avoid POSIX path conversion by msys
  24. - "make config.h CC=cl CCAN_CFLAGS=\"-nologo -Zi -FS -W4 -wd4200 -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS\" CFLAGS_FORCE_C_SOURCE=-TC OUTPUT_OPTION=-Fo:$@ DEPGEN= LD=link SHELL=bash"
  25. # FIXME: Work in progress. Disabled due to unfixed compile errors.
  26. # FIXME: -j%NUMBER_OF_PROCESSORS% won't work without DEPGEN for config.h
  27. # It may be possible to generate .d from cl using /showIncludes
  28. # See https://stackoverflow.com/q/37685069
  29. #- "make tools CC=cl CCAN_CFLAGS=\"-nologo -Zi -FS -W4 -wd4200 -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS\" CFLAGS_FORCE_C_SOURCE=-TC OUTPUT_OPTION=-Fo:$@ DEPGEN= LD=link SHELL=bash"
  30. #- "make -k CC=cl CCAN_CFLAGS=\"-nologo -Zi -FS -W4 -wd4200 -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS\" CFLAGS_FORCE_C_SOURCE=-TC OUTPUT_OPTION=-Fo:$@ DEPGEN= LD=link SHELL=bash"
  31. test_script:
  32. # FIXME: Work in progress. Disabled due to unfixed compile errors.
  33. #- "make -k check CC=cl CCAN_CFLAGS=\"-nologo -Zi -FS -W4 -wd4200 -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS\" CFLAGS_FORCE_C_SOURCE=-TC OUTPUT_OPTION=-Fo:$@ DEPGEN= LD=link SHELL=bash"