-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1021 from gcotelli/self_hosted_gitlab
Self hosted gitlab support
- Loading branch information
Showing
11 changed files
with
52 additions
and
4 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
Iceberg-Pharo6.package/MCGitlabRepository.extension/instance/hostname.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*Iceberg-Pharo6 | ||
hostname | ||
|
||
^ 'gitlab.com' |
3 changes: 3 additions & 0 deletions
3
Iceberg-Pharo6.package/MCGitlabRepository.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"name" : "MCGitlabRepository" | ||
} |
Empty file.
7 changes: 7 additions & 0 deletions
7
Iceberg-Tests.package/MCGitlabRepositoryIcebergExtensionsTest.class/instance/testHttpsUrl.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
8 changes: 8 additions & 0 deletions
8
...MCGitlabRepositoryIcebergExtensionsTest.class/instance/testHttpsUrlForSelfHostedGitlab.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
7 changes: 7 additions & 0 deletions
7
Iceberg-Tests.package/MCGitlabRepositoryIcebergExtensionsTest.class/instance/testScpUrl.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
8 changes: 8 additions & 0 deletions
8
...e/MCGitlabRepositoryIcebergExtensionsTest.class/instance/testScpUrlForSelfHostedGitlab.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
11 changes: 11 additions & 0 deletions
11
Iceberg-Tests.package/MCGitlabRepositoryIcebergExtensionsTest.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
Iceberg.package/MCGitlabRepository.extension/instance/httpsUrl.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
4 changes: 2 additions & 2 deletions
4
Iceberg.package/MCGitlabRepository.extension/instance/scpUrl.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |