forked from datastax/csharp-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.yaml
36 lines (31 loc) · 1.07 KB
/
build.yaml
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
os:
- ubuntu/trusty64
cassandra:
- 2.0
- 2.1
- 2.2
- 3.0
- 3.4
build:
- script: |
# Set the Java paths (for CCM)
export JAVA_HOME=$CCM_JAVA_HOME
export PATH=$JAVA_HOME/bin:$PATH
# Define alias for Nuget
nuget() {
mono /home/jenkins/nuget/NuGet.exe "$@"
}
export -f nuget
# Define Cassandra runtime
export CASSANDRA_VERSION=$CCM_CASSANDRA_VERSION
# Install the required packages
export EnableNuGetPackageRestore=true
nuget restore src/Cassandra.sln
nuget install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner
# Compile the driver and test code
xbuild /p:Configuration=Release /v:m /p:restorepackages=false src/Cassandra.sln
# Run the tests
echo "==========RUNNING FULL SUITE OF TESTS=========="
mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe src/Cassandra.Tests/bin/Release/Cassandra.Tests.dll src/Cassandra.IntegrationTests/bin/Release/Cassandra.IntegrationTests.dll -labels -exclude=long,duration
- nunit:
- "TestResult.xml"