@@ -38,32 +38,21 @@ functions:
38
38
shell : bash
39
39
working_dir : mongo-efcore-provider
40
40
script : |
41
- # Get the current unique version of this checkout
42
- if [ "${is_patch}" = "true" ]; then
43
- CURRENT_VERSION=$(git describe)-patch-${version_id}
44
- else
45
- CURRENT_VERSION=latest
46
- fi
47
-
48
- PACKAGE_VERSION=$(bash ./evergreen/generate-version.sh)
41
+ PACKAGE_VERSION=$(triggered_by_git_tag=${triggered_by_git_tag} bash ./evergreen/generate-version.sh)
49
42
50
43
export DRIVERS_TOOLS="$(pwd)/../drivers-tools"
51
44
export DOTNET_SDK_PATH="$(pwd)/../.dotnet"
52
45
53
46
if [ "Windows_NT" = "$OS" ]; then # Magic variable in cygwin
54
47
# Python has cygwin path problems on Windows. Detect prospective mongo-orchestration home directory
55
48
export DRIVERS_TOOLS=$(cygpath -m $DRIVERS_TOOLS)
56
- else
57
- # non windows OSs don't have dotnet in the PATH
58
- export PATH=$PATH:/usr/share/dotnet
59
49
fi
60
50
61
51
export MONGO_ORCHESTRATION_HOME="$DRIVERS_TOOLS/.evergreen/orchestration"
62
52
export MONGODB_BINARIES="$DRIVERS_TOOLS/mongodb/bin"
63
53
export PROJECT_DIRECTORY="$(pwd)"
64
54
65
55
cat <<EOT > expansion.yml
66
- CURRENT_VERSION: "$CURRENT_VERSION"
67
56
DRIVERS_TOOLS: "$DRIVERS_TOOLS"
68
57
MONGO_ORCHESTRATION_HOME: "$MONGO_ORCHESTRATION_HOME"
69
58
MONGODB_BINARIES: "$MONGODB_BINARIES"
@@ -143,7 +132,7 @@ functions:
143
132
upload-test-results :
144
133
- command : attach.xunit_results
145
134
params :
146
- file : ./mongo-efcore-provider/artifacts/test-results/TEST*.xml
135
+ file : ./mongo-efcore-provider/artifacts/test-results/**/ TEST*.xml
147
136
148
137
bootstrap-mongo-orchestration :
149
138
- command : shell.exec
@@ -171,6 +160,19 @@ functions:
171
160
OS=${OS} \
172
161
MONGODB_URI="${MONGODB_URI}" \
173
162
CRYPT_SHARED_LIB_PATH=${CRYPT_SHARED_LIB_PATH} \
163
+ BUILD_CONFIGURATION="Debug" \
164
+ ./evergreen/run-tests.sh
165
+ - command : shell.exec
166
+ type : test
167
+ params :
168
+ working_dir : mongo-efcore-provider
169
+ script : |
170
+ ${PREPARE_SHELL}
171
+ DRIVER_VERSION=${DRIVER_VERSION} \
172
+ OS=${OS} \
173
+ MONGODB_URI="${MONGODB_URI}" \
174
+ CRYPT_SHARED_LIB_PATH=${CRYPT_SHARED_LIB_PATH} \
175
+ BUILD_CONFIGURATION="Debug EF9" \
174
176
./evergreen/run-tests.sh
175
177
176
178
cleanup :
@@ -226,6 +228,7 @@ functions:
226
228
type : test
227
229
params :
228
230
working_dir : mongo-efcore-provider
231
+ shell : bash
229
232
script : |
230
233
${PREPARE_SHELL}
231
234
. ./evergreen/pack-packages.sh
0 commit comments