-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathappveyor.yml
51 lines (43 loc) · 2.03 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
# version format
version: 1.0.{build}
image: Visual Studio 2017
build:
verbosity: normal
notifications:
- provider: Email
to:
subject: open62541 windows build status changed
on_build_success: false
on_build_failure: false
on_build_status_changed: true
environment:
WINDOWS_DEPENDENCIES_DIR: C:\workspace\OPC-UA\quasar-windows-dependencies
BOOST_PATH_HEADERS: $(WINDOWS_DEPENDENCIES_DIR)\boost\lib\native\include
BOOST_PATH_LIBS: $(WINDOWS_DEPENDENCIES_DIR)
#
# Set environment variables in powershell using command
# [System.Environment]::SetEnvironmentVariable("VAR", "C:/target/path", "Machine")')
#
install:
# delete and recreate clean directory for windows dependencies.
- ps : |
Write-Output "Cleaning and recreating windows dependencies dir: ${env:WINDOWS_DEPENDENCIES_DIR}"
if(Test-Path "${env:WINDOWS_DEPENDENCIES_DIR}")
{
Remove-Item "${env:WINDOWS_DEPENDENCIES_DIR}" -Force -Recurse;
}
New-Item -ItemType Directory -Force -Path "${env:WINDOWS_DEPENDENCIES_DIR}"
# nuget: package manager for installing libs
- ps : Write-Output "Installing nuget packages to ${env:WINDOWS_DEPENDENCIES_DIR}"
- ps : nuget install boost-vc141 -Version 1.67.0 -NonInteractive -ExcludeVersion -OutputDirectory "${env:WINDOWS_DEPENDENCIES_DIR}"
- ps : Write-Output "Installed nuget packages to ${env:WINDOWS_DEPENDENCIES_DIR}"
build_script:
- ps : mkdir ..\open62541-compat-debug-build ; cd ..\open62541-compat-debug-build
- cmd : cmake ..\open62541-compat\ -G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=Release -DSTANDALONE_BUILD=ON -DOPEN62541-COMPAT_BUILD_CONFIG_FILE="boost_appveyor_ci.cmake"
- cmd : cmake --build %cd% --config Release
test_script:
- ps : .\test\Release\open62541-compat-Test.exe
# uncomment to block VM deletion for investigating broken builds.
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))