forked from OPCFoundation/UA-.NETStandard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
79 lines (74 loc) · 4.68 KB
/
.travis.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
76
77
language: csharp
mono: 5.4.0
dotnet: 2.0.0
os:
- linux
- osx
sudo: false
dist: trusty
osx_image: xcode9.1
addons:
apt:
sources:
packages:
script:
- echo "========== restore all .Net Core samples ============"
- dotnet restore "UA Core Library.sln"
- dotnet restore "UA-NetStandard.sln"
- dotnet restore "UA Global Discovery Server.sln"
- dotnet restore "UA Quickstart Applications.sln"
- dotnet restore "SampleApplications/Workshop/Aggregation/UA Aggregation.sln"
- dotnet restore "SampleApplications/Workshop/Reference/UA Reference.sln"
- echo "========== build all .Net Core samples ============"
- dotnet build -c Debug /p:NoHttps=true SampleApplications/Samples/NetCoreConsoleServer/NetCoreConsoleServer.csproj
- dotnet build -c Release /p:NoHttps=true SampleApplications/Samples/NetCoreConsoleServer/NetCoreConsoleServer.csproj
- dotnet build -c Debug SampleApplications/Samples/NetCoreConsoleClient/NetCoreConsoleClient.csproj
- dotnet build -c Debug SampleApplications/Samples/NetCoreComplexClient/NetCoreComplexClient.csproj
- dotnet build -c Debug SampleApplications/Samples/NetCoreConsoleServer/NetCoreConsoleServer.csproj
- dotnet build -c Release SampleApplications/Samples/NetCoreConsoleClient/NetCoreConsoleClient.csproj
- dotnet build -c Release SampleApplications/Samples/NetCoreComplexClient/NetCoreComplexClient.csproj
- dotnet build -c Release SampleApplications/Samples/NetCoreConsoleServer/NetCoreConsoleServer.csproj
- dotnet build -c Debug SampleApplications/Workshop/Aggregation/ConsoleAggregationServer
- dotnet build -c Release SampleApplications/Workshop/Aggregation/ConsoleAggregationServer
- dotnet build -c Debug SampleApplications/Workshop/Reference/ConsoleReferenceServer/ConsoleReferenceServer.csproj
- dotnet build -c Release SampleApplications/Workshop/Reference/ConsoleReferenceServer/ConsoleReferenceServer.csproj
- dotnet build -c Debug SampleApplications/Samples/GDS/ConsoleServer
- dotnet build -c Release SampleApplications/Samples/GDS/ConsoleServer
- dotnet build -c Debug SampleApplications/Samples/GDS/ClientTest
- dotnet build -c Release SampleApplications/Samples/GDS/ClientTest
- dotnet test --no-build -v n -c Debug --filter TestCategory="GDSRegistrationAndPull" SampleApplications/Samples/GDS/ClientTest
- dotnet test --no-build -v n -c Release --filter TestCategory="GDSRegistrationAndPull" SampleApplications/Samples/GDS/ClientTest
- dotnet test --no-build -v n -c Debug --filter TestCategory="GDSPush" SampleApplications/Samples/GDS/ClientTest
- dotnet test --no-build -v n -c Release --filter TestCategory="GDSPush" SampleApplications/Samples/GDS/ClientTest
# - dotnet test --no-build -v n -c Debug --filter TestCategory="CertificateValidator" SampleApplications/Samples/GDS/ClientTest
- dotnet test --no-build -v n -c Release --filter TestCategory="CertificateValidator" SampleApplications/Samples/GDS/ClientTest
- echo "========== run .Net Core samples ============"
- cd SampleApplications/Samples/NetCoreConsoleServer/bin/Debug/netcoreapp2.0
- dotnet NetCoreConsoleServer.dll -t 10 -a
- cd $TRAVIS_BUILD_DIR
- ./testclientserver.sh
- echo "========== build all Mono samples ============"
- msbuild /t:restore SampleApplications/Workshop/Reference/ConsoleReferenceServer/MonoReferenceServer.csproj
- msbuild /p:configuration=Debug /t:compile,publish SampleApplications/Workshop/Reference/ConsoleReferenceServer/MonoReferenceServer.csproj
- msbuild /p:configuration=Release /t:compile,publish SampleApplications/Workshop/Reference/ConsoleReferenceServer/MonoReferenceServer.csproj
- msbuild /t:restore SampleApplications/Samples/NetCoreConsoleServer/MonoConsoleServer.csproj
- msbuild /p:configuration=Debug /t:compile,publish SampleApplications/Samples/NetCoreConsoleServer/MonoConsoleServer.csproj
- msbuild /p:configuration=Release /t:compile,publish SampleApplications/Samples/NetCoreConsoleServer/MonoConsoleServer.csproj
- msbuild /t:restore SampleApplications/Samples/NetCoreConsoleClient/MonoConsoleClient.csproj
- msbuild /p:configuration=Debug /t:compile,publish SampleApplications/Samples/NetCoreConsoleClient/MonoConsoleClient.csproj
- msbuild /p:configuration=Release /t:compile,publish SampleApplications/Samples/NetCoreConsoleClient/MonoConsoleClient.csproj
- cd SampleApplications/Samples/NetCoreConsoleServer/bin/Debug/net46
- mono MonoConsoleServer.exe -t 10 -a
- cd $TRAVIS_BUILD_DIR
- ./testmonoclientserver.sh
after_script:
- echo "========== build done ============"
after_failure:
- cd $HOME
- cd .local/share/OPC
- ls -R
- cd Logs
- cat GlobalDiscoveryTestClient.log.txt
- cat ServerConfigurationPushTestClient.log.txt
- cat GlobalDiscoveryTestServer.log.txt
- cd $TRAVIS_BUILD_DIR