forked from OPCFoundation/UA-.NETStandard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (52 loc) · 2.33 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
language: csharp
mono: none
dotnet: 2.0.0
os:
- linux
- osx
sudo: false
dist: trusty
osx_image: xcode9.1
addons:
apt:
sources:
packages:
script:
- echo "========== build all .Net Core samples ============"
- dotnet restore "UA Core Library.sln"
- dotnet restore "UA-NetStandard.sln"
- dotnet restore "UA Global Discovery Server.sln"
- dotnet build -c Debug SampleApplications/Samples/NetCoreConsoleClient
- dotnet build -c Debug SampleApplications/Samples/NetCoreConsoleServer
- dotnet build -c Release SampleApplications/Samples/NetCoreConsoleClient
- dotnet build -c Release SampleApplications/Samples/NetCoreConsoleServer
- dotnet restore "SampleApplications/Workshop/Aggregation/UA Aggregation.sln"
- dotnet build -c Debug SampleApplications/Workshop/Aggregation/ConsoleAggregationServer
- dotnet build -c Release SampleApplications/Workshop/Aggregation/ConsoleAggregationServer
- dotnet restore "SampleApplications/Workshop/Reference/UA Reference.sln"
- dotnet build -c Debug SampleApplications/Workshop/Reference/ConsoleReferenceServer
- dotnet build -c Release SampleApplications/Workshop/Reference/ConsoleReferenceServer
- 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 -c Debug --filter TestCategory!="GDSPush" SampleApplications/Samples/GDS/ClientTest
- dotnet test -c Release --filter TestCategory!="GDSPush" SampleApplications/Samples/GDS/ClientTest
- dotnet test -c Debug --filter TestCategory="GDSPush" SampleApplications/Samples/GDS/ClientTest
- dotnet test -c Release --filter TestCategory="GDSPush" 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
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