File: .appveyor.yml

package info (click to toggle)
cloudflare-ddns 2.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 420 kB
  • sloc: cpp: 844; ansic: 126; sh: 32; makefile: 6
file content (43 lines) | stat: -rw-r--r-- 1,491 bytes parent folder | download | duplicates (2)
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
# SPDX-FileCopyrightText: 2017 Jussi Pakkanen
#
# SPDX-License-Identifier: CC0-1.0

image: Visual Studio 2019

environment:
  matrix:
    - arch: x86
      compiler: msvc2019
    - arch: x64
      compiler: msvc2019
  api_token:
    secure: Zo4CXhD9M2XoeZkF1emEcQK/g6PGIFztGZ1FaYaKg7I5YhDbj962xzj0jqUhgW2C
  zone_id:
    secure: SQDa4GZsqrxoVemMabChKXvSOt+EM1Ky2EX6dyN0w7zitwTsQeYOEh8gFMkA21in
  record_name:
    secure: EElzS3TkDp8Ph6oz3DWAQxtcbuQE9nyxhjlbEgqcOn4=

platform:
  - x64

install:
  # Set paths to dependencies (based on architecture)
  - cmd: if %arch%==x86 (set PYTHON_ROOT=C:\Python39) else (set PYTHON_ROOT=C:\Python39-x64)
  # Add necessary paths to PATH variable
  - cmd: set PATH=%cd%;%PYTHON_ROOT%;%PYTHON_ROOT%\Scripts;%PATH%
  # Install meson and ninja
  - cmd: pip install --quiet ninja meson
  # Set up the build environment
  - cmd: if %compiler%==msvc2019 ( call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" %arch% )

build_script:
  - cmd: meson setup build --default-library=static --buildtype=debugoptimized -Db_vscrt=static_from_buildtype -Db_sanitize=address -Dtests=true -Dtest_api_token=%api_token% -Dtest_zone_id=%zone_id% -Dtest_record_name=%arch%.%record_name%
  - cmd: type .\build\subprojects\curl-8.4.0\lib\curl_config.h
  - cmd: meson compile -C build --verbose

test_script:
  - cmd: meson test -C build --verbose

artifacts:
  - path: build\exe\cloudflare-ddns.exe
    name: cloudflare-ddns-x64