Skip to content

Commit

Permalink
(build) made git repo safe for artifact docker tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed Apr 14, 2023
1 parent 0f9694c commit 63efafc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions build/CI.sln
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "actions", "actions", "{A9B9
..\.github\actions\docker-test\action.yml = ..\.github\actions\docker-test\action.yml
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "scripts", "scripts", "{960DC223-117E-41DE-8A89-C85E3D69A8E8}"
ProjectSection(SolutionItems) = preProject
..\tests\scripts\test-global-tool.sh = ..\tests\scripts\test-global-tool.sh
..\tests\scripts\test-msbuild-task.sh = ..\tests\scripts\test-msbuild-task.sh
..\tests\scripts\test-native-tool.sh = ..\tests\scripts\test-native-tool.sh
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
1 change: 1 addition & 0 deletions tests/scripts/test-global-tool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ do
shift
done

git config --global --add safe.directory '*'
result=$(dotnet tool install GitVersion.Tool --version $version --tool-path /tools --add-source $nugetPath) # >/dev/null
status=$?
if test $status -eq 0
Expand Down
1 change: 1 addition & 0 deletions tests/scripts/test-msbuild-task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ do
shift
done

git config --global --add safe.directory '*'
result=$(dotnet build $repoPath --source $nugetPath --source https://api.nuget.org/v3/index.json -p:GitVersionMsBuildVersion=$version -p:TargetFrameworks=$targetframework) # >/dev/null
status=$?
if test $status -eq 0
Expand Down
3 changes: 2 additions & 1 deletion tests/scripts/test-native-tool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ do
shift
done

git config --global --add safe.directory '*'
result=$(tar -xvpf /native/gitversion-$runtime-$version.tar.gz -C /native) # >/dev/null
status=$?
if test $status -eq 0
then
/native/gitversion $repoPath /showvariable FullSemver;
else
echo $result
fi
fi

0 comments on commit 63efafc

Please sign in to comment.