forked from OPCFoundation/UA-.NETStandard-Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
65 lines (59 loc) · 2.78 KB
/
Copy path.travis.yml
File metadata and controls
65 lines (59 loc) · 2.78 KB
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
language: csharp
mono: 6.8.0
dotnet: 3.1
os:
- linux
- osx
sudo: true
dist: xenial
osx_image: xcode12
before_install:
# - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install dotnet-sdk-3.1 ; fi
addons:
apt:
sources:
packages:
script:
- echo "========== restore all .Net Core samples ============"
- dotnet restore "UA Sample Applications.sln"
- dotnet restore "UA Global Discovery Server.sln"
- dotnet restore "UA Quickstart Applications.sln"
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then dotnet restore "UA Aggregation.sln" ; fi
- echo "========== build all .Net Core samples ============"
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then dotnet build -c Debug Workshop/Aggregation/ConsoleAggregationServer/ConsoleAggregationServer.csproj ; fi
- dotnet build -c Debug Samples/NetCoreConsoleClient/NetCoreConsoleClient.csproj
- dotnet build -c Debug Samples/NetCoreComplexClient/NetCoreComplexClient.csproj
- dotnet build -c Debug Samples/NetCoreConsoleServer/NetCoreConsoleServer.csproj
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then dotnet build -c Release Workshop/Aggregation/ConsoleAggregationServer/ConsoleAggregationServer.csproj ; fi
- dotnet build -c Release Samples/NetCoreConsoleClient/NetCoreConsoleClient.csproj
- dotnet build -c Release Samples/NetCoreComplexClient/NetCoreComplexClient.csproj
- dotnet build -c Release Samples/NetCoreConsoleServer/NetCoreConsoleServer.csproj
- dotnet build -c Debug Samples/GDS/ConsoleServer
- dotnet build -c Release Samples/GDS/ConsoleServer
- echo "========== run .Net Core samples ============"
- cd Samples/NetCoreConsoleServer/bin/Debug/netcoreapp3.1
- dotnet NetCoreConsoleServer.dll -t 10 -a
- cd $TRAVIS_BUILD_DIR
- ./testclientserver.sh
- echo "========== build all Mono samples ============"
- msbuild /t:restore Samples/NetCoreConsoleServer/MonoConsoleServer.csproj
- msbuild /p:configuration=Debug /t:compile,publish Samples/NetCoreConsoleServer/MonoConsoleServer.csproj
- msbuild /p:configuration=Release /t:compile,publish Samples/NetCoreConsoleServer/MonoConsoleServer.csproj
- msbuild /t:restore Samples/NetCoreConsoleClient/MonoConsoleClient.csproj
- msbuild /p:configuration=Debug /t:compile,publish Samples/NetCoreConsoleClient/MonoConsoleClient.csproj
- msbuild /p:configuration=Release /t:compile,publish Samples/NetCoreConsoleClient/MonoConsoleClient.csproj
- cd Samples/NetCoreConsoleServer/bin/Debug/net462
- 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