-
-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #327 from ctaggart/LibGit2Sharp
update LibGit2Sharp to 0.27.0-preview-0007
- Loading branch information
Showing
4 changed files
with
35 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,47 +10,38 @@ steps: | |
artifactName: deployables | ||
downloadPath: $(System.DefaultWorkingDirectory) | ||
|
||
- task: Bash@3 | ||
- script: | | ||
git config --global user.name ci | ||
git config --global user.email [email protected] | ||
displayName: Set up git username and email address | ||
inputs: | ||
targetType: inline | ||
script: | | ||
git config --global user.name ci | ||
git config --global user.email [email protected] | ||
|
||
- task: Bash@3 | ||
- script: > | ||
PkgFileName=$(ls deployables/Nerdbank.GitVersioning.*nupkg) | ||
NBGV_NuGetPackageVersion=$([[ $PkgFileName =~ Nerdbank.GitVersioning\.(.*)\.nupkg ]] && echo "${BASH_REMATCH[1]}") | ||
echo "<configuration><packageSources><clear /><add key='local' value='deployables' /></packageSources></configuration>" > nuget.config && | ||
dotnet new classlib -o lib && | ||
cd lib && | ||
echo '{"version":"42.42"}' > version.json && | ||
git init && | ||
git add lib.csproj version.json Class1.cs && | ||
dotnet add package nerdbank.gitversioning -v $NBGV_NuGetPackageVersion && | ||
git commit -m "Initial commit" && | ||
dotnet pack -c debug && | ||
if ! ls bin/debug/lib.42.42.1*.nupkg 1> /dev/null 2>&1; then exit 1; fi | ||
displayName: Consume NB.GV from .NET Core build | ||
inputs: | ||
failOnStderr: true | ||
targetType: inline | ||
script: > | ||
PkgFileName=$(ls deployables/Nerdbank.GitVersioning.*nupkg) | ||
NBGV_NuGetPackageVersion=$([[ $PkgFileName =~ Nerdbank.GitVersioning\.(.*)\.nupkg ]] && echo "${BASH_REMATCH[1]}") | ||
echo "<configuration><packageSources><clear /><add key='local' value='deployables' /></packageSources></configuration>" > nuget.config && | ||
dotnet new classlib -o lib && | ||
cd lib && | ||
echo '{"version":"42.42"}' > version.json && | ||
git init && | ||
git add lib.csproj version.json Class1.cs && | ||
dotnet add package nerdbank.gitversioning -v $NBGV_NuGetPackageVersion && | ||
git commit -m "Initial commit" && | ||
dotnet pack -c debug && | ||
if ! ls bin/debug/lib.42.42.1*.nupkg 1> /dev/null 2>&1; then exit 1; fi | ||
- task: Bash@3 | ||
displayName: Use nbgv dotnet CLI tool | ||
inputs: | ||
failOnStderr: true | ||
targetType: inline | ||
script: > | ||
echo DOTNET_ROOT=$DOTNET_ROOT | ||
failOnStderr: true | ||
|
||
- script: > | ||
echo DOTNET_ROOT=$DOTNET_ROOT | ||
PkgFileName=$(ls deployables/Nerdbank.GitVersioning.*nupkg) | ||
PkgFileName=$(ls deployables/Nerdbank.GitVersioning.*nupkg) | ||
NBGV_NuGetPackageVersion=$([[ $PkgFileName =~ Nerdbank.GitVersioning\.(.*)\.nupkg ]] && echo "${BASH_REMATCH[1]}") | ||
NBGV_NuGetPackageVersion=$([[ $PkgFileName =~ Nerdbank.GitVersioning\.(.*)\.nupkg ]] && echo "${BASH_REMATCH[1]}") | ||
dotnet tool install nbgv --tool-path . --version $NBGV_NuGetPackageVersion --add-source deployables && | ||
./nbgv get-version -f json -p lib && | ||
./nbgv get-version -f json -p lib | grep 42.42.1 | ||
dotnet tool install nbgv --tool-path . --version $NBGV_NuGetPackageVersion --add-source deployables && | ||
./nbgv get-version -f json -p lib && | ||
./nbgv get-version -f json -p lib | grep 42.42.1 | ||
displayName: Use nbgv dotnet CLI tool | ||
failOnStderr: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters