An official mirror (for now...) of the FreeCAD project. Currently maintained in sync manually by Yorik. Please check https://www.freecadweb.org for issues and pull requests https://www.freecadweb.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

appveyor.yml 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #version:
  2. image: Visual Studio 2017
  3. environment:
  4. matrix:
  5. - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
  6. # APPVEYOR_SAVE_CACHE_ON_ERROR: true
  7. generator: "Visual Studio 15 2017 Win64"
  8. ARCH: "Win64"
  9. Compiler: "MSVC2017"
  10. cache: c:\users\appveyor\clcache -> appveyor.yml
  11. configuration:
  12. #- Debug
  13. - Release
  14. clone_depth: 1600
  15. # scripts that are called at very beginning, before repo cloning
  16. #init:
  17. #before_build:
  18. # scripts that run after cloning repository
  19. #todo cleanup libpacks on the FreeCAD-ports-cache repo
  20. install:
  21. - cd C:\projects\freecad
  22. - if [%ARCH%] == [Win64] (appveyor DownloadFile https://github.com/apeltauer/FreeCAD/releases/download/LibPack_12.1/FreeCADLibs_12.1.2_x64_VC15.7z)
  23. - if [%ARCH%] == [Win64] (
  24. powershell -Command 7z x FreeCADLibs_12.1.2_x64_VC15.7z -oFreeCADLibs > nul &&
  25. call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat")
  26. - set PATH=c:\Python37;c:\Python37\Scripts;%PATH%
  27. - pip install clcache
  28. - clcache -z
  29. - clcache -s
  30. build_script:
  31. - cd C:\projects\freecad
  32. - mkdir build
  33. - cd build
  34. - cmake -DFREECAD_LIBPACK_DIR=C:\projects\freecad\FreeCADLibs
  35. -DBUILD_FEM_NETGEN=OFF
  36. -DFREECAD_RELEASE_PDB=OFF
  37. -G "%generator%" ..
  38. - mkdir bin
  39. - xcopy C:\projects\freecad\FreeCADLibs\bin C:\projects\freecad\build\bin /E /Q
  40. - ps: fsutil behavior set disablelastaccess 0 # Enable Access time feature on Windows (for clcache)
  41. - msbuild FreeCAD.sln /p:TrackFileAccess=false /p:CLToolExe=clcache.exe /p:CLToolPath=c:\Python37\Scripts\ /m
  42. - ps: fsutil behavior set disablelastaccess 1
  43. - clcache -s
  44. #after_build:
  45. - cd C:\projects\freecad\build\bin\
  46. - FreeCADCmd.exe --run-test 0
  47. #artifacts:
  48. test: off # to avoid discovering tests
  49. #
  50. # The following section automatically uploads artifacts
  51. # whenever a tag is created on the master branch.
  52. #
  53. #deploy: