Skip to content

Commit

Permalink
restoring global tools as part of build
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftkey committed Feb 9, 2020
1 parent 44cdcb1 commit 75cb523
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,13 @@ $Arguments = @{
dryrun=$WhatIf;
}.GetEnumerator() | %{"--{0}=`"{1}`"" -f $_.key, $_.value };

Write-Host "Restoring global tools..."
Invoke-Expression "dotnet tool restore"
if($LASTEXITCODE -ne 0) {
Pop-Location;
exit $LASTEXITCODE;
}

# Start Cake
Push-Location
Set-Location build
Expand Down
5 changes: 4 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
echo "new limit: `ulimit -n`"
fi

echo "Restoring global tools"
dotnet tool restore

cd build
echo "Preparing Cake.Frosting build runner..."
dotnet restore

echo "Executing Cake.Frosting build runner..."
echo "dotnet run -- $@"
dotnet run -- "$@"
dotnet run -- "$@"

0 comments on commit 75cb523

Please sign in to comment.