mirror of
https://github.com/OPCFoundation/UA-.NETStandard.git
synced 2026-10-17 05:11:13 +08:00
c7fa0f1b5d
Visual Studio 2017 and 2019 support debugging Docker containers. You need to install Docker for Windows for this to work, though, find it here: https://download.docker.com/win/stable/Docker%20Desktop%20Installer.exe. This change adds a Docker container definition and the settings for Visual Studio to expose the containerized Aggregation server running on Linux through the default OPC UA port (62530).
112 lines
3.2 KiB
YAML
112 lines
3.2 KiB
YAML
|
|
#---------------------------------#
|
|
# general configuration #
|
|
#---------------------------------#
|
|
|
|
# version format
|
|
version: 1.4.360.{build}-{branch}
|
|
|
|
|
|
# branches to build
|
|
branches:
|
|
# blacklist
|
|
except:
|
|
- gh-pages
|
|
|
|
#---------------------------------#
|
|
# environment configuration #
|
|
#---------------------------------#
|
|
|
|
# Build worker image (VM template)
|
|
image: Visual Studio 2019
|
|
|
|
# scripts that are called at very beginning, before repo cloning
|
|
init:
|
|
- git config --global core.autocrlf input
|
|
|
|
# clone directory
|
|
clone_folder: c:\projects\UA-.NetStandard
|
|
|
|
# set clone depth
|
|
clone_depth: 5 # clone entire repository history if not defined
|
|
|
|
environment:
|
|
matrix:
|
|
- solution_name: "UA Core Library.sln"
|
|
test_name: "void"
|
|
# test_name: "Stack/Opc.Ua.Core.Tests/Opc.Ua.Core.Tests.csproj"
|
|
param: ""
|
|
- solution_name: "UA-NetStandard.sln"
|
|
test_name: "void"
|
|
# test_name: "SampleApplications/SDK/Opc.Ua.Client.ComplexTypes.Tests/Opc.Ua.Client.ComplexTypes.Tests.csproj"
|
|
param: ""
|
|
- solution_name: "UA-NetStandard.sln"
|
|
test_name: "void"
|
|
param: "/p:NoHttps=true"
|
|
- solution_name: "UA Global Discovery Server.sln"
|
|
test_name: "SampleApplications/Samples/GDS/ClientTest/GlobalDiscoveryClientTest.csproj"
|
|
param: ""
|
|
- solution_name: "UA Universal Windows.sln"
|
|
test_name: "void"
|
|
param: ""
|
|
- solution_name: "UA Quickstart Applications.sln"
|
|
test_name: "void"
|
|
param: ""
|
|
- solution_name: "SampleApplications/Workshop/Aggregation/UA Aggregation.sln"
|
|
test_name: "void"
|
|
param: ""
|
|
- solution_name: "SampleApplications/Workshop/Reference/UA Reference.sln"
|
|
test_name: "void"
|
|
param: ""
|
|
|
|
# this is how to allow failing jobs in the matrix
|
|
matrix:
|
|
fast_finish: false # set this flag to immediately finish build once one of the jobs fails.
|
|
|
|
# scripts to run before build
|
|
before_build:
|
|
- nuget restore "%solution_name%"
|
|
|
|
# scripts to run *after* solution is built and *before* automatic packaging occurs (web apps, NuGet packages, Azure Cloud Services)
|
|
before_package:
|
|
|
|
# scripts to run after build
|
|
after_build:
|
|
|
|
# to run your custom scripts instead of automatic MSBuild
|
|
build_script:
|
|
- msbuild "%solution_name%" %param% /p:Configuration=Debug /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
|
- msbuild "%solution_name%" %param% /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
|
|
|
# test
|
|
test:
|
|
|
|
test_script:
|
|
- if NOT "%test_name%" == "void" ( dotnet test "%test_name%" )
|
|
# TODO nunit3-console v3.6 cannot load csproj, enable when newer version is available
|
|
# - if NOT "%test_name%" == "void" ( nunit3-console "%test_name%" --result=./myresults.xml;format=AppVeyor )
|
|
# - $wc = New-Object 'System.Net.WebClient'
|
|
# - $wc.UploadFile("https://ci.appveyor.com/api/testresults/nunit3/$($env:APPVEYOR_JOB_ID)", (Resolve-Path ./myresults.xml))
|
|
|
|
# build cache to preserve files/folders between builds
|
|
cache:
|
|
- packages -> **\packages.config
|
|
|
|
#---------------------------------#
|
|
# global handlers #
|
|
#---------------------------------#
|
|
|
|
# on successful build
|
|
on_success:
|
|
- echo on_success
|
|
|
|
# on build failure
|
|
on_failure:
|
|
- echo on_failure
|
|
|
|
# after build failure or success
|
|
on_finish:
|
|
- echo on_finish
|
|
|
|
|