-
Notifications
You must be signed in to change notification settings - Fork 231
/
.travis.yml
37 lines (32 loc) · 1.11 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
language: csharp
sudo: required
mono: none
dist: focal
branches:
except:
- 1.0
- 2.0
- 2.1
- dse_3.1
matrix:
include:
- dotnet: 8.0.200
env: TARGETF="net8" BUILD_EXAMPLES="1" BuildCoreOnly=True CASSANDRA_NETCORE_RUNTIME="8" RunCodeAnalyzers="True"
- dotnet: 6.0.419
env: TARGETF="net6" BUILD_EXAMPLES="0" BuildCoreOnly=True CASSANDRA_NETCORE_RUNTIME="6" RunCodeAnalyzers="True"
- dotnet: 7.0.406
env: TARGETF="net7" BUILD_EXAMPLES="0" BuildCoreOnly=True CASSANDRA_NETCORE_RUNTIME="7" RunCodeAnalyzers="True"
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