forked from iboB/dynamix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
76 lines (70 loc) · 2.98 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# http://www.appveyor.com/docs/appveyor-yml
notifications:
- provider: Email
to:
on_build_status_changed: true
on_build_failure: true
on_build_success: false
clone_depth: 5
branches:
only:
- master
- dev
cache:
- .mtime_cache
# - vcbuild_x86
# - vcbuild_x64
# - vcbuild_cc
# - vcbuild_static
matrix:
fast_finish: false
environment:
matrix:
- gen: "Visual Studio 14 2015"
- gen: "Visual Studio 15 2017"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
build_script:
# mtime_cache for faster builds
- ruby tools/mtime_cache **/*.{%{cpp}} -c .mtime_cache/cache.json
# build and run tests for 32 and 64 bit
- if not exist vcbuild_x86 mkdir vcbuild_x86
- cd vcbuild_x86
- cmake .. -G "%gen%"
- msbuild dynamix.sln /p:Configuration=Debug;Platform=Win32 /maxcpucount /verbosity:minimal
- ctest -C Debug --output-on-failure
- msbuild dynamix.sln /p:Configuration=Release;Platform=Win32 /maxcpucount /verbosity:minimal
- ctest -C Release --output-on-failure
- cd ..
- if not exist vcbuild_x64 mkdir vcbuild_x64
- cd vcbuild_x64
- cmake .. -G "%gen% Win64"
- msbuild dynamix.sln /p:Configuration=Debug;Platform=x64 /maxcpucount /verbosity:minimal
- ctest -C Debug --output-on-failure
- msbuild dynamix.sln /p:Configuration=Release;Platform=x64 /maxcpucount /verbosity:minimal
- ctest -C Release --output-on-failure
- cd ..
# build and run tests for custom config file (64-bit only)
- if not exist vcbuild_cc mkdir vcbuild_cc
- cd vcbuild_cc
- cmake .. -DDYNAMIX_BUILD_PERF=0 -DDYNAMIX_BUILD_EXAMPLES=0 -DDYNAMIX_BUILD_TUTORIALS=0 -DDYNAMIX_BUILD_SCRATCH=0 -DDYNAMIX_CUSTOM_CONFIG_FILE="\"%cd%\..\test\custom_config\custom_config.hpp\"" -G "%gen% Win64"
- msbuild dynamix.sln /p:Configuration=Debug;Platform=x64 /maxcpucount /verbosity:minimal
- ctest -C Debug --output-on-failure
- msbuild dynamix.sln /p:Configuration=Release;Platform=x64 /maxcpucount /verbosity:minimal
- ctest -C Release --output-on-failure
- cd ..
# build and run tests for DynaMix as a static lib (64-bit only)
- if not exist vcbuild_static mkdir vcbuild_static
- cd vcbuild_static
- cmake .. -DDYNAMIX_SHARED_LIB=0 -DDYNAMIX_BUILD_EXAMPLES=0 -DDYNAMIX_BUILD_TUTORIALS=0 -DDYNAMIX_BUILD_SCRATCH=0 -G "%gen% Win64"
- msbuild dynamix.sln /p:Configuration=Debug;Platform=x64 /maxcpucount /verbosity:minimal
- ctest -C Debug --output-on-failure
- msbuild dynamix.sln /p:Configuration=Release;Platform=x64 /maxcpucount /verbosity:minimal
- ctest -C Release --output-on-failure
- cd ..
# static analysis
#~ - if "%gen%" == "Visual Studio 15 2017" mkdir vcbuild_analysis
#~ - if "%gen%" == "Visual Studio 15 2017" cd vcbuild_analysis
#~ - if "%gen%" == "Visual Studio 15 2017" cmake .. -G "%gen% Win64"
#~ - if "%gen%" == "Visual Studio 15 2017" msbuild dynamix.sln /p:Configuration=Debug;Platform=x64 /maxcpucount /p:RunCodeAnalysis=true /p:CodeAnalysisTreatWarningsAsErrors=true
#~ - if "%gen%" == "Visual Studio 15 2017" cd ..