-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
53 lines (45 loc) · 1.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
build:
verbosity: detailed
branches:
only:
- master
platform: x64
environment:
matrix:
# Visual Studio 2019
- GENERATOR: Visual Studio 16 2019 Win64
STDFLAGS: /std:c++latest
SCRIPT: support/vs.py
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
install:
#- git submodule -q update --init
# Install Ninja
- cmd: mkdir C:\ninja-build
- ps: (new-object net.webclient).DownloadFile('https://github.com/mesonbuild/cidata/raw/master/ninja.exe', 'C:\ninja-build\ninja.exe')
# Set paths to dependencies (based on architecture)
- cmd: set PYTHON_ROOT=C:\python37-x64
# Print out dependency paths
- cmd: echo Using Python at %PYTHON_ROOT%
# Add neccessary paths to PATH variable
- cmd: set PATH=%cd%;C:\ninja-build;%PYTHON_ROOT%;%PYTHON_ROOT%\Scripts;%PATH%
# Install meson
- cmd: pip install meson
- cmd: meson --version
- cmd: ninja --version
before_build:
# Enable the Visual C++ toolset for command-line builds.
- IF "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" (
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
)
build_script:
- cmd: echo Building on %arch% with %compiler%
- cmd: meson --backend=ninja build
- cmd: ninja -C build
test_script:
- cmd: ninja -C build test
only_commits:
files:
- .appveyor.yml
- meson.build
- ntbs.hpp
- test_ntbs.cpp