forked from datastax/csharp-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (32 loc) · 1.04 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
language: csharp
sudo: required
mono: none
dist: xenial
branches:
except:
- 1.0
- 2.0
- 2.1
- dse_3.1
matrix:
include:
- dotnet: 3.1.300
env: TARGETF="netcoreapp3.1" BUILD_EXAMPLES="1" BuildCoreOnly=True NETCORE_RUNTIME="3.1" RunCodeAnalyzers="True"
- dotnet: 2.1.202
env: TARGETF="netcoreapp2.0" BUILD_EXAMPLES="0" BuildCoreOnly=True NETCORE_RUNTIME="2.0" RunCodeAnalyzers="True"
before_install:
- sudo apt-get -y install dotnet-sdk-3.1
script:
- dotnet --info
- |
if [ "${BUILD_EXAMPLES}" == "1" ]
then
dotnet restore examples
dotnet build --no-restore examples/examples.sln -c Release
fi
- dotnet restore src
# work around dotnet sdk concurrency issue
- dotnet build src/Cassandra.Tests/Cassandra.Tests.csproj --no-restore -c Release || true
- sleep 5
- dotnet build src/Cassandra.Tests/Cassandra.Tests.csproj --no-restore -c Release || true
- dotnet test src/Cassandra.Tests/Cassandra.Tests.csproj --no-restore --no-build -v n -c Release -f $TARGETF