Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ format-doc:
find . -iname "*.md" -exec sed -i -e 's_[[:space:]]*$$__' {} \;

.PHONY: test
test:
test: nuget
dotnet test -v normal --framework=net$(LATEST_SDK_VERSION)
./scripts/run_snippests.sh
./scripts/run_snippets.sh

.PHONY: build
build:
Expand Down
7 changes: 3 additions & 4 deletions scripts/run_snippet.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ RUN_DIR=$2
SCRIPT_DIR=$3
CONFIG_FILE_PATH=$4

rm $RUN_DIR/*.cs || true
rm "$RUN_DIR"/*.cs || true

echo "Run snippet file: $FILE_PATH"

python ${SCRIPT_DIR}/insert-credentials.py $FILE_PATH $CONFIG_FILE_PATH $RUN_DIR

dotnet run --project ./$RUN_DIR/Snippets.csproj || exit 1
python "${SCRIPT_DIR}/insert-credentials.py" "$FILE_PATH" "$CONFIG_FILE_PATH" "$RUN_DIR"

dotnet run --project "./$RUN_DIR/Snippets.csproj" || exit 1
Empty file modified scripts/run_snippets.sh
100644 → 100755
Empty file.