This repository has been archived by the owner on Dec 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
/
appveyor.yml
73 lines (61 loc) · 2.33 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
#---------------------------------#
# General configuration #
#---------------------------------#
# Version format
version: 4.0.{build}
# Branches to build
branches:
# whitelist
only:
- master
#---------------------------------#
# Environment configuration #
#---------------------------------#
# Build worker image (VM template)
image: Visual Studio 2017
# Scripts that run after cloning repository
install:
############################################################################
# All external dependencies are installed in C:\projects\deps
############################################################################
- mkdir C:\projects\deps
- cd C:\projects\deps
############################################################################
# Install Ninja
############################################################################
- set NINJA_URL="https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-win.zip"
- appveyor DownloadFile %NINJA_URL% -FileName ninja.zip
- 7z x ninja.zip -oC:\projects\deps\ninja > nul
- set PATH=C:\projects\deps\ninja;%PATH%
- ninja --version
############################################################################
# Install a recent CMake
############################################################################
- set CMAKE_URL="https://cmake.org/files/v3.16/cmake-3.16.2.zip"
- appveyor DownloadFile %CMAKE_URL% -FileName cmake.zip
- 7z x cmake.zip -oC:\projects\deps > nul
- move C:\projects\deps\cmake-* C:\projects\deps\cmake # Move to a version-agnostic directory
- set PATH=C:\projects\deps\cmake\bin;%PATH%
- cmake --version
# Perform git clone with submodules
clone_script:
- cmd: >-
git clone --depth 1 --recursive -q --branch=%APPVEYOR_REPO_BRANCH% https://github.com/%APPVEYOR_REPO_NAME%.git %APPVEYOR_BUILD_FOLDER%
#---------------------------------#
# Build configuration #
#---------------------------------#
before_build:
- cd C:\projects\babyloncpp
build_script:
- python cmake_build.py all
#---------------------------------#
# Build notifications #
#---------------------------------#
notifications:
- provider: Email
to:
subject: BabylonCpp build {{buildVersion}} - {{status}}
on_build_success: false
on_build_failure: true
on_build_status_changed: true