-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.appveyor.yml
75 lines (59 loc) · 1.88 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
version: 0.1.8.{build}
skip_tags: true
skip_branch_with_pr: true
image:
- Visual Studio 2022
clone_folder: c:\projects\cdt-plusplus
shallow_clone: true
clone_script:
- cmd: >-
git clone -q --recursive --branch=%APPVEYOR_REPO_BRANCH% https://github.com/%APPVEYOR_REPO_NAME%.git %APPVEYOR_BUILD_FOLDER%
&& cd %APPVEYOR_BUILD_FOLDER%
&& git checkout -qf %APPVEYOR_REPO_COMMIT%
&& git submodule update --init --recursive
environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: false
APPVEYOR_CACHE_SKIP_RESTORE: true
VCPKG_DEFAULT_TRIPLET: x64-windows
VCPKG_ROOT: c:\tools\vcpkg
cache:
- c:\Users\appveyor\AppData\Local\vcpkg\archives\
- c:\tools\vcpkg\packages\
install:
# Setup vcpkg
- cd c:\tools\vcpkg
- git pull
- .\bootstrap-vcpkg.bat
- set PATH=%PATH%;%VCPKG_ROOT%
- vcpkg integrate install
- cmake --version
# Setup Clang-cl
- set PATH=%PATH%;"C:\Program Files\LLVM\bin"
- clang-cl -v
- set CC=clang-cl -mrtm
- set CXX=clang-cl -mrtm
# Visual Studio 2022
- call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
- set CMAKE_CXX_COMPILER="C:\Program Files\LLVM\bin\clang-cl"
platform:
- x64
configuration: Release
build:
verbosity: detailed
build_script:
- cd %APPVEYOR_BUILD_FOLDER%
- cmake --preset=appveyor
- cmake --build build
#test_script:
# - cd build
# - ctest --output-on-failure -j2 --output-junit test-results.xml
#
#after_test:
# - find "$APPVEYOR_BUILD_FOLDER" -type f -name 'test-results.xml' -print0 | xargs -0 -I '{}' curl -F 'file=@{}' "https://ci.appveyor.com/api/testresults/junit/$APPVEYOR_JOB_ID"
notifications:
- provider: Email
to:
- acgetchell@ucdavis.edu
on_build_status_changed: true
#on_failure:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))