-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest.sh
39 lines (36 loc) · 1.48 KB
/
test.sh
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
#!/bin/bash
set -ex
dotnetVersion=$(dotnet --version)
export dotnetVersion
echo "$dotnetVersion"
if [ "$dotnetVersion" == "7.0.202" ]
then
dotnet new install ./src/IkeMtz.NRSRx.Templates/Models --force
dotnet new install ./src/IkeMtz.NRSRx.Templates/OData --force
dotnet new install ./src/IkeMtz.NRSRx.Templates/'OData Tests' --force
dotnet new install ./src/IkeMtz.NRSRx.Templates/WebApi --force
dotnet new install ./src/IkeMtz.NRSRx.Templates/'WebApi Tests' --force
else
dotnet new --install ./src/IkeMtz.NRSRx.Templates/Models
dotnet new --install ./src/IkeMtz.NRSRx.Templates/OData
dotnet new --install ./src/IkeMtz.NRSRx.Templates/'OData Tests'
dotnet new --install ./src/IkeMtz.NRSRx.Templates/WebApi
dotnet new --install ./src/IkeMtz.NRSRx.Templates/'WebApi Tests'
fi
rm -r ./TestResults || true
set -e
echo --- Executing tests-models.sh ---
/bin/bash -e ./tests-models.sh
echo --- Executing tests-odata-skip-models-mssql.sh ---
/bin/bash -e ./tests-odata-skip-models-mssql.sh
echo --- Executing tests-odata-skip-models-mysql.sh ---
/bin/bash -e ./tests-odata-skip-models-mysql.sh
echo --- Executing tests-odata.sh ---
/bin/bash -e ./tests-odata.sh
echo --- Executing tests-webapi-skip-models-mssql-redis.sh ---
/bin/bash -e ./tests-webapi-skip-models-mssql-redis.sh
echo --- Executing tests-webapi-skip-models-mysql-redis.sh ---
/bin/bash -e ./tests-webapi-skip-models-mysql-redis.sh
echo --- Executing tests-webapi.sh ---
/bin/bash -e ./tests-webapi.sh
echo ------ FINISHED ------