From 259447fdc1c9bbe7af5da1211182a238faf5e251 Mon Sep 17 00:00:00 2001 From: lukeIam <2lukeiam@gmail.com> Date: Fri, 22 Dec 2017 14:03:39 +0100 Subject: [PATCH] Add GitLink to the build pipeline --- .appveyor/runGitLink.ps1 | 10 ++++++++++ appveyor.yml | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 .appveyor/runGitLink.ps1 diff --git a/.appveyor/runGitLink.ps1 b/.appveyor/runGitLink.ps1 new file mode 100644 index 00000000..eeb93b87 --- /dev/null +++ b/.appveyor/runGitLink.ps1 @@ -0,0 +1,10 @@ +choco install gitlink --version 3.2.0-unstable0014 --pre + +Get-ChildItem -Recurse "*.pdb" | %{ + If ($_.Fullname -contains 'PitchTracker.pdb'){ + gitlink -u "https://github.com/$($Env:APPVEYOR_REPO_NAME)" -a --baseDir "$Env:APPVEYOR_BUILD_FOLDER" --commit "$Env:APPVEYOR_REPO_COMMIT" $_.Fullname + } + else{ + gitlink -u "https://github.com/$($Env:APPVEYOR_REPO_NAME)" --baseDir "$Env:APPVEYOR_BUILD_FOLDER" --commit "$Env:APPVEYOR_REPO_COMMIT" $_.Fullname + } +} \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml index 6dd108e7..24586769 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -50,6 +50,8 @@ build: verbosity: normal after_build: - ps: | + ./.appveyor/runGitLink.ps1 + cd Output $Env:MAIN_REPO = $False