forked from GerbilSoft/rom-properties
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
72 lines (58 loc) · 1.53 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
# AppVeyor configuration file.
version: '1.8.3.{build}'
# Build worker image (VM template)
image: Visual Studio 2015
# scripts that are called at very beginning, before repo cloning
init:
- git config --global core.autocrlf input
# clone directory
clone_folder: c:\projects\rom-properties
# Don't build if source files aren't modified.
only_commits:
files:
- appveyor.cmd
- appveyor.yml
- '**/CMakeLists.txt'
- '**/*.cmd'
- '**/*.sh'
- extlib/**/*
- src/**/*
environment:
matrix:
- platform: x86
configuration: Debug
compiler: msvc2015
- platform: x86
configuration: Release
compiler: msvc2015
- platform: x64
configuration: Debug
compiler: msvc2015
- platform: x64
configuration: Release
compiler: msvc2015
#- platform: x86
# configuration: Debug
# compiler: mingw-w64
- platform: x64
configuration: Debug
compiler: mingw-w64
# Run CMake with optional features turned off initially.
before_build:
- cd %APPVEYOR_BUILD_FOLDER%
- appveyor.cmd OFF
# Build once with optional features turned off,
# then build again with optional features turned on.
build_script:
- cd %APPVEYOR_BUILD_FOLDER%\build
- cmake --build . --config %configuration%
- cd ..
- appveyor.cmd ON
- cd %APPVEYOR_BUILD_FOLDER%\build
- cmake --build . --config %configuration%
test_script:
- cd %APPVEYOR_BUILD_FOLDER%\build
- ctest -V -C %configuration%
after_test:
- cd %APPVEYOR_BUILD_FOLDER%\build
- ..\appveyor-artifacts.cmd