1f532e60fSYorik van Havre#version:
2f532e60fSYorik van Havre
3642919b4SAbdullah Tahiriimage: Visual Studio 2017
4642919b4SAbdullah Tahiri
5f532e60fSYorik van Havreenvironment:
6f532e60fSYorik van Havre  matrix:
7642919b4SAbdullah Tahiri    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
8642919b4SAbdullah Tahiri      # APPVEYOR_SAVE_CACHE_ON_ERROR: true
9642919b4SAbdullah Tahiri      generator: "Visual Studio 15 2017 Win64"
10f532e60fSYorik van Havre      ARCH: "Win64"
11642919b4SAbdullah Tahiri      Compiler: "MSVC2017"
12f532e60fSYorik van Havre
13642919b4SAbdullah Tahiricache: c:\users\appveyor\clcache -> appveyor.yml
14f532e60fSYorik van Havre
15f532e60fSYorik van Havreconfiguration:
16f532e60fSYorik van Havre  #- Debug
17f532e60fSYorik van Havre  - Release
18f532e60fSYorik van Havre
19f532e60fSYorik van Havreclone_depth: 1600
20f532e60fSYorik van Havre
21f532e60fSYorik van Havre# scripts that are called at very beginning, before repo cloning
22f532e60fSYorik van Havre#init:
23f532e60fSYorik van Havre
24f532e60fSYorik van Havre#before_build:
25f532e60fSYorik van Havre
26f532e60fSYorik van Havre# scripts that run after cloning repository
27f532e60fSYorik van Havre#todo cleanup libpacks on the FreeCAD-ports-cache repo
28f532e60fSYorik van Havreinstall:
29f532e60fSYorik van Havre  - cd C:\projects\freecad
30642919b4SAbdullah Tahiri  - if [%ARCH%] == [Win64] (appveyor DownloadFile https://github.com/apeltauer/FreeCAD/releases/download/LibPack_12.1/FreeCADLibs_12.1.2_x64_VC15.7z)
31f532e60fSYorik van Havre  - if [%ARCH%] == [Win64] (
32642919b4SAbdullah Tahiri      powershell -Command 7z x FreeCADLibs_12.1.2_x64_VC15.7z -oFreeCADLibs > nul &&
33642919b4SAbdullah Tahiri      call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat")
34cd418a6aSAbdullah Tahiri  - set PATH=c:\Python37;c:\Python37\Scripts;%PATH%
35cd418a6aSAbdullah Tahiri  - pip install clcache
36ed7e4df2SAbdullah Tahiri  - clcache -z
37cd418a6aSAbdullah Tahiri  - clcache -s
38f532e60fSYorik van Havre
39f532e60fSYorik van Havrebuild_script:
40f532e60fSYorik van Havre  - cd C:\projects\freecad
41f532e60fSYorik van Havre  - mkdir build
42f532e60fSYorik van Havre  - cd build
43f532e60fSYorik van Havre  - cmake -DFREECAD_LIBPACK_DIR=C:\projects\freecad\FreeCADLibs
44f532e60fSYorik van Havre    -DBUILD_FEM_NETGEN=OFF
4542c40331SAbdullah Tahiri    -DFREECAD_RELEASE_PDB=OFF
46f532e60fSYorik van Havre    -G "%generator%" ..
47f532e60fSYorik van Havre  - mkdir bin
48f532e60fSYorik van Havre  - xcopy C:\projects\freecad\FreeCADLibs\bin C:\projects\freecad\build\bin /E /Q
492cc73303SAbdullah Tahiri  - ps: fsutil behavior set disablelastaccess 0 # Enable Access time feature on Windows (for clcache)
50ab23ac4fSMarkus Reitboeck  - msbuild FreeCAD.sln /p:TrackFileAccess=false /p:CLToolExe=clcache.exe /p:CLToolPath=c:\Python37\Scripts\ /m
512cc73303SAbdullah Tahiri  - ps: fsutil behavior set disablelastaccess 1
52cd418a6aSAbdullah Tahiri  - clcache -s
53f532e60fSYorik van Havre
54f532e60fSYorik van Havre#after_build:
55f532e60fSYorik van Havre  - cd C:\projects\freecad\build\bin\
56f532e60fSYorik van Havre  - FreeCADCmd.exe --run-test 0
57f532e60fSYorik van Havre
58f532e60fSYorik van Havre#artifacts:
59f532e60fSYorik van Havre
60f532e60fSYorik van Havretest: off  # to avoid discovering tests
61f532e60fSYorik van Havre
62f532e60fSYorik van Havre#
63f532e60fSYorik van Havre# The following section automatically uploads artifacts
64f532e60fSYorik van Havre# whenever a tag is created on the master branch.
65f532e60fSYorik van Havre#
66f532e60fSYorik van Havre#deploy:
67