forked from plivo/plivo-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (29 loc) · 1.13 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
language: csharp
solution: Plivo.sln
matrix:
include:
- dotnet: 2.1.300
mono: none
env: DOTNETCORE=2 # optional, can be used to take different code paths in your script
- dotnet: 1.1.5
mono: none
env: DOTNETCORE=1 # supporting GitVersioning package
install:
- 'if [ ${DOTNETCORE} = 2 ]; then
dotnet restore;
dotnet build --framework netstandard2.0 src/Plivo/Plivo.csproj;
dotnet build --framework netcoreapp2.0 tests_netcore/Plivo.NetCore.Test/Plivo.NetCore.Test.csproj;
fi'
- 'if [ ${DOTNETCORE} = 1 ]; then
sudo apt-get install 2.1.300-rc1-008673;
dotnet restore;
dotnet build --framework netstandard1.3 src/Plivo/Plivo.csproj;
dotnet build --framework netcoreapp1.1 tests_netcore/Plivo.NetCore.Test/Plivo.NetCore.Test.csproj;
fi'
script:
- 'if [ ${DOTNETCORE} = 2 ]; then
dotnet test --framework netcoreapp2.0 ./tests_netcore/Plivo.NetCore.Test/Plivo.NetCore.Test.csproj;
fi'
- 'if [ ${DOTNETCORE} = 1 ]; then
dotnet test --framework netcoreapp1.1 ./tests_netcore/Plivo.NetCore.Test/Plivo.NetCore.Test.csproj;
fi'