-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor_.yml
128 lines (111 loc) · 3.38 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
branches:
only:
- master
skip_branch_with_pr: false
image:
- Visual Studio 2019
- Ubuntu
- macOS
platform:
- x86
- x64
configuration:
- Debug
- Release
environment:
VCPKG_SCRIPT: scripts/buildsystems/vcpkg.cmake
ENABLE_CODE_COVERAGE: OFF
HAVE_PRECISE_TIMER: ON
matrix:
allow_failures:
- platform: x86
image: Ubuntu
- platform: x86
image: macOS
for:
-
matrix:
only:
- image: Ubuntu
environment:
WS: /home/appveyor
TRIPLET: $PLATFORM-linux
cache:
- $WS/vcpkg/installed
init:
- sh: if [ $PLATFORM = "x86" ]; then exit 1; fi
-
matrix:
only:
- image: macOS
environment:
WS: /Users/appveyor/projects
TRIPLET: $PLATFORM-osx
HAVE_PRECISE_TIMER: OFF
cache:
##- $WS/vcpkg
- $WS/vcpkg/installed
init:
- sh: if [ $PLATFORM = "x86" ]; then exit 1; fi
- sh: brew install p7zip #lcov
- sh: cd $WS && git clone https://github.com/Microsoft/vcpkg.git
- sh: cd $APPVEYOR_BUILD_FOLDER
test_script:
- sh: ctest -V
skip_commits:
files:
- .github/*
#- .gitignore
- README.md
- azure-pipelines.yml
- azure-pipelines/*
- LICENSE
- codecov.yml
cache:
- C:\tools\vcpkg\installed
install:
- cmd: if "%PLATFORM%" == "x64" call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
- cmd: if "%PLATFORM%" == "x86" call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"
- cmd: ninja --version
before_build:
#- cmd: cd C:\tools\vcpkg
#- sh : cd $WS/vcpkg
#- git pull
#- cmd: IF NOT EXIST vcpkg.exe .\bootstrap-vcpkg.bat
#- sh : test -f vcpkg || ./bootstrap-vcpkg.sh
#- cmd: .\bootstrap-vcpkg.bat
#- sh : ./bootstrap-vcpkg.sh
#- cmd: vcpkg install sdl2 sdl2-image gtest --triplet %PLATFORM%-windows
#- sh : ./vcpkg install sdl2 sdl2-image gtest --triplet $TRIPLET
- cmd: cd %APPVEYOR_BUILD_FOLDER%
- sh : cd $APPVEYOR_BUILD_FOLDER
build_script:
- mkdir out
- cd out
- cmd: cmake -G "Ninja" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DWITH_SDL2_STATIC=OFF -DBUILD_SNAPSHOT=OFF -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/%VCPKG_SCRIPT% ..
- sh : cmake -DCMAKE_BUILD_TYPE=$CONFIGURATION -DWITH_SDL2_STATIC=ON -DBUILD_SNAPSHOT=OFF -DENABLE_CODE_COVERAGE=$ENABLE_CODE_COVERAGE -DHAVE_PRECISE_TIMER=$HAVE_PRECISE_TIMER -DCMAKE_TOOLCHAIN_FILE=$WS/vcpkg/$VCPKG_SCRIPT ..
- cmake --build .
test_script:
- cmd: ctest -V # ubuntu image is headless, no video driver.
after_test:
- cmd: cmake --build . --target install # skip linux, as the current path might not be ok, is more package related.
- cmake --build . --target package
artifacts:
- path: "out/*.zip"
type: zip
name: cpack-artifact
# deploy:
# #release: $(APPVEYOR_REPO_TAG_NAME)
# description: |
# $(APPVEYOR_REPO_COMMIT_MESSAGE)
# $(APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED)
# provider: GitHub
# auth_token:
# secure: kHD3/jTkrB+XCe1nsPPPPduqAqTJzNPUvtiya65A2YvTuAngru6TYLgNKE3wc85G
# artifact: /.*\.zip/
# draft: true
# prerelease: false
# force_update: true
# on:
# #branch: master # release from master branch only
# APPVEYOR_REPO_TAG: true # deploy on tag push only