Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self hosted gitlab support #1021

Merged
merged 3 commits into from
Oct 9, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,7 @@
running
testHttpsUrlForSelfHostedGitlab

| repository |

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: 'git@gitlab.com:pharo-project/pharo.git'
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
running
testScpUrlForSelfHostedGitlab

| repository |

repository := MCGitlabRepository location: 'gitlab://git.pharo.org:pharo-project/pharo:master'.
self assert: repository scpUrl equals: 'git@git.pharo.org: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