File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 8
8
before_install :
9
9
- git fetch --unshallow # Travis always does a shallow clone, but GitVersion needs the full history including branches and tags
10
10
script :
11
+ - export PR=https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST
12
+ - export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo `curl -s $PR | jq -r .head.ref`; fi)
11
13
- ./build.sh
12
14
cache :
13
15
directories :
Original file line number Diff line number Diff line change @@ -58,10 +58,13 @@ Task("Version")
58
58
. Does ( ( ) =>
59
59
{
60
60
string url = null ;
61
+ string branch = null ;
61
62
// We need to use dynamic repositories on Travis
62
63
if ( TravisCI . IsRunningOnTravisCI )
63
64
{
64
65
url = "https://github.com/GitTools/GitVersion.git" ;
66
+ branch = EnvironmentVariable ( "BRANCH" ) ;
67
+ Information ( "Travis branch: {0}" , branch ) ;
65
68
}
66
69
67
70
GitVersion ( new GitVersionSettings
@@ -70,13 +73,15 @@ Task("Version")
70
73
LogFilePath = "console" ,
71
74
OutputType = GitVersionOutput . BuildServer ,
72
75
ToolPath = @"src\GitVersionExe\bin\Release\GitVersion.exe" ,
73
- Url = url
76
+ Url = url ,
77
+ Branch = branch
74
78
} ) ;
75
79
GitVersion assertedVersions = GitVersion ( new GitVersionSettings
76
80
{
77
81
OutputType = GitVersionOutput . Json ,
78
82
ToolPath = @"src\GitVersionExe\bin\Release\GitVersion.exe" ,
79
- Url = url
83
+ Url = url ,
84
+ Branch = branch
80
85
} ) ;
81
86
82
87
version = assertedVersions . MajorMinorPatch ;
Original file line number Diff line number Diff line change @@ -549,6 +549,7 @@ II.2.12 <HandlesEvent />
549
549
<s : Boolean x : Key =" /Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EMigrateBlankLinesAroundFieldToBlankLinesAroundProperty/@EntryIndexedValue" >True</s : Boolean >
550
550
<s : Boolean x : Key =" /Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EMigrateThisQualifierSettings/@EntryIndexedValue" >True</s : Boolean >
551
551
<s : Boolean x : Key =" /Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002EJavaScript_002ECodeStyle_002ESettingsUpgrade_002EJsCodeFormatterSettingsUpgrader/@EntryIndexedValue" >True</s : Boolean >
552
+ <s : Boolean x : Key =" /Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002EJavaScript_002ECodeStyle_002ESettingsUpgrade_002EJsParsFormattingSettingsUpgrader/@EntryIndexedValue" >True</s : Boolean >
552
553
<s : Boolean x : Key =" /Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002EJavaScript_002ECodeStyle_002ESettingsUpgrade_002EJsWrapperSettingsUpgrader/@EntryIndexedValue" >True</s : Boolean >
553
554
<s : Boolean x : Key =" /Default/Environment/UnitTesting/SeparateAppDomainPerAssembly/@EntryValue" >True</s : Boolean >
554
555
<s : Boolean x : Key =" /Default/Environment/UnitTesting/ShadowCopy/@EntryValue" >False</s : Boolean >
You can’t perform that action at this time.
0 commit comments