Skip to content

Commit

Permalink
Merge pull request #1021 from gcotelli/self_hosted_gitlab
Browse files Browse the repository at this point in the history
Self hosted gitlab support
  • Loading branch information
guillep authored Oct 9, 2018
2 parents f019b54 + 536aae2 commit 07e3403
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*Iceberg-Pharo6
hostname

^ 'gitlab.com'
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name" : "MCGitlabRepository"
}
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
running
testHttpsUrl

| repository |

repository := MCGitlabRepository location: 'gitlab://pharo-project/pharo:master'.
self assert: repository httpsUrl equals: 'https://gitlab.com/pharo-project/pharo.git'
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
running
testHttpsUrlForSelfHostedGitlab

| repository |

(SystemVersion current major <= 6) ifTrue: [self skip].
repository := MCGitlabRepository location: 'gitlab://git.pharo.org:pharo-project/pharo:master'.
self assert: repository httpsUrl equals: 'https://git.pharo.org/pharo-project/pharo.git'
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
running
testScpUrl

| repository |

repository := MCGitlabRepository location: 'gitlab://pharo-project/pharo:master'.
self assert: repository scpUrl equals: '[email protected]:pharo-project/pharo.git'
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
running
testScpUrlForSelfHostedGitlab

| repository |

(SystemVersion current major <= 6) ifTrue: [self skip].
repository := MCGitlabRepository location: 'gitlab://git.pharo.org:pharo-project/pharo:master'.
self assert: repository scpUrl equals: '[email protected]:pharo-project/pharo.git'
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"commentStamp" : "",
"super" : "TestCase",
"category" : "Iceberg-Tests-Core-Remotes",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"name" : "MCGitlabRepositoryIcebergExtensionsTest",
"type" : "normal"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*Iceberg-Adapters
*Iceberg
httpsUrl
^ 'https://gitlab.com/', projectPath, '.git'
^ 'https://<1s>/<2s>.git' expandMacrosWith: self hostname with: projectPath
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*Iceberg-Adapters
*Iceberg
scpUrl
^ 'git@gitlab.com:', projectPath, '.git'
^ 'git@<1s>:<2s>.git' expandMacrosWith: self hostname with: projectPath

0 comments on commit 07e3403

Please sign in to comment.