forked from mysql-net/MySqlConnector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.ps1
53 lines (47 loc) · 1.09 KB
/
test.ps1
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# restore
dotnet restore
if ($LASTEXITCODE -ne 0){
exit $LASTEXITCODE;
}
# build project
dotnet build src\MySqlConnector -c Release
if ($LASTEXITCODE -ne 0){
exit $LASTEXITCODE;
}
echo "Executing unit tests"
pushd tests\MySqlConnector.Tests
dotnet test -c Release
if ($LASTEXITCODE -ne 0){
exit $LASTEXITCODE;
}
popd
pushd tests\Conformance.Tests
dotnet test -c Release
if ($LASTEXITCODE -ne 0){
exit $LASTEXITCODE;
}
popd
pushd tests\MySqlConnector.DependencyInjection.Tests
dotnet test -c Release
if ($LASTEXITCODE -ne 0){
exit $LASTEXITCODE;
}
popd
pushd .\tests\IntegrationTests
echo "Executing integration tests with No Compression, No SSL"
Copy-Item -Force ..\..\.ci\config\config.json config.json
dotnet test -c Release -f net462
if ($LASTEXITCODE -ne 0){
exit $LASTEXITCODE;
}
dotnet test -c Release -f net7.0
if ($LASTEXITCODE -ne 0){
exit $LASTEXITCODE;
}
echo "Executing integration tests with Compression, No SSL"
Copy-Item -Force ..\..\.ci\config\config.compression.json config.json
dotnet test -c Release -f net6.0
if ($LASTEXITCODE -ne 0){
exit $LASTEXITCODE;
}
popd