Skip to content

Commit 31838de

Browse files
Trying to get HEAD detached at FETCH_HEAD to match AppVeyor
1 parent 09cc71f commit 31838de

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,24 @@ language: csharp
22
solution: src/GitVersion.sln
33
sudo: false
44
before_install: # We need to download nuget.exe due to: https://github.com/travis-ci/travis-ci/issues/5932
5+
- git status
6+
- git show-ref HEAD --head
7+
- git show HEAD -s
8+
- cat .git/HEAD
9+
- cat .git/FETCH_HEAD
510
- git fetch --unshallow
611
- git status
712
- git show-ref HEAD --head
813
- git show HEAD -s
914
- cat .git/HEAD
15+
- cat .git/FETCH_HEAD
16+
- git fetch origin +refs/pull/890/merge
17+
- git checkout -qf FETCH_HEAD
18+
- git status
19+
- git show-ref HEAD --head
20+
- git show HEAD -s
21+
- cat .git/HEAD
22+
- cat .git/FETCH_HEAD
1023
- mkdir -p .nuget
1124
- wget -O .nuget/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
1225
- mono .nuget/nuget.exe
@@ -19,6 +32,7 @@ script:
1932
- git show-ref HEAD --head
2033
- git show HEAD -s
2134
- cat .git/HEAD
35+
- cat .git/FETCH_HEAD
2236
- mono ./build/NuGetCommandLineBuild/tools/GitVersion.exe -l console -output buildserver -updateAssemblyInfo
2337
- xbuild ./src/GitVersion.sln /property:Configuration="Debug" /verbosity:detailed
2438
- mono ./src/packages/NUnit.ConsoleRunner.3.2.1/tools/nunit3-console.exe ./src/GitVersionTask.Tests/bin/Debug/GitVersionTask.Tests.dll ./src/GitVersionCore.Tests/bin/Debug/GitVersionCore.Tests.dll ./src/GitVersionTask.Tests/bin/Debug/GitVersionTask.Tests.dll ./src/GitVersionExe.Tests/bin/Debug/GitVersionExe.Tests.dll --where "cat != NoMono" --noresult

appveyor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ build_script:
1212
- cmd: git show-ref HEAD --head
1313
- cmd: git show HEAD -s
1414
- cmd: type .git\HEAD
15+
- cmd: type .git\FETCH_HEAD
1516
- cmd: nuget restore src/GitVersion.sln
1617
- cmd: npm i -g tfx-cli
1718

@@ -20,6 +21,7 @@ build_script:
2021
- cmd: git show-ref HEAD --head
2122
- cmd: git show HEAD -s
2223
- cmd: type .git\HEAD
24+
- cmd: type .git\FETCH_HEAD
2325
- ps: .\build\NuGetCommandLineBuild\tools\GitVersion.exe /l console /output buildserver /updateAssemblyInfo
2426
- cmd: msbuild src/GitVersion.sln "/p:Configuration=%CONFIGURATION%;Platform=%PLATFORM%"
2527

0 commit comments

Comments
 (0)