-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
48 lines (41 loc) · 1.1 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
version: 1.0.{build}-{branch}
image:
- Visual Studio 2017
platform:
- Win64
- ARM
configuration:
- Debug
- Release
# disable build for 'gh-pages' branch
branches:
except:
- gh-pages
shallow_clone: false
clone_folder: c:\projects\otus_homework
# scripts to run before build
before_build:
- echo "Running cmake... for %APPVEYOR_BUILD_WORKER_IMAGE% %PLATFORM% %CONFIGURATION%"
- cd %APPVEYOR_BUILD_FOLDER%
- git submodule update --init --recursive
build_script:
- if %PLATFORM%==Win64 (
cmake -H"%APPVEYOR_BUILD_FOLDER%" -Bbuild -G "Visual Studio 15 2017 %PLATFORM%" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DBUILD_TESTING=ON
)
- if %PLATFORM%==ARM (
cmake -H"%APPVEYOR_BUILD_FOLDER%" -Bbuild -G "Visual Studio 15 2017 %PLATFORM%"
)
- cmake --build build
test_script:
- set CTEST_OUTPUT_ON_FAILURE=ON
# Can not run ARM builds on x86/x64 build images
- if %PLATFORM%==Win64 (
cmake --build build --target RUN_TESTS
)
notifications:
- provider: Email
to:
- '{{commitAuthorEmail}}'
on_build_success: false
on_build_failure: true
on_build_status_changed: true