forked from plivo/plivo-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (26 loc) · 944 Bytes
/
.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
language: csharp
solution: Plivo.sln
matrix:
include:
- dotnet: 1.1.5
mono: none
env: DOTNETCORE=1 # optional, can be used to take different code paths in your script
- mono: latest
dotnet: 1.1.5
install:
- 'if [ ${DOTNETCORE} = 1 ]; then
dotnet restore;
dotnet build --framework netstandard1.1 src/Plivo/Plivo.csproj;
dotnet build --framework netcoreapp1.1 tests_netcore/Plivo.NetCore.Test/Plivo.NetCore.Test.csproj;
else
dotnet restore;
nuget restore Plivo.sln;
nuget install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner;
fi'
script:
- 'if [ ${DOTNETCORE} = 1 ]; then
dotnet test ./tests_netcore/Plivo.NetCore.Test/Plivo.NetCore.Test.csproj;
else
msbuild /p:Configuration=Release Plivo.sln;
mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe ./tests/Plivo.Test/bin/Release/Plivo.Test.dll;
fi'