-
Notifications
You must be signed in to change notification settings - Fork 390
/
.appveyor.yml
45 lines (38 loc) · 1.15 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
configuration:
- Release
environment:
matrix:
- generator: "Visual Studio 14 2015"
- generator: "Visual Studio 14 2015 Win64"
- generator: "Visual Studio 10 2010"
- generator: "Visual Studio 10 2010 Win64"
- generator: "MinGW Makefiles"
dialect: mingw
- generator: "MinGW Makefiles"
dialect: mingw-w64
matrix:
fast_finish: true
shallow_clone: true
skip_commits:
files:
- .circleci/
- .github/
- .editorconfig
- .gitignore
- .cirrus.yml
- LICENSE
- plog.nuspec
- plog.targets
- README.md
before_build:
# Workaround for CMake not wanting sh.exe on PATH for MinGW
- set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
- if "%dialect%"=="mingw" set PATH=c:\MinGW\bin;%PATH%
- if "%dialect%"=="mingw-w64" set PATH=c:\msys64\mingw64\bin;%PATH%
- cmake -H. -Bbuild -G"%generator%" -DCMAKE_BUILD_TYPE=%configuration% -DPLOG_BUILD_TESTS=1
build_script:
- if "%generator:~0,6%"=="Visual" set CMAKE_BUILD_FLAGS=--config %configuration% -- /m /v:m
- if "%generator:~0,5%"=="MinGW" set CMAKE_BUILD_FLAGS=-- -j
- cmake --build build %CMAKE_BUILD_FLAGS%
test_script:
- cd build && ctest -V