Commit 5e6da988 authored by Ayush Tiwari's avatar Ayush Tiwari

README: Change URL to use the new Gitlab repository in test and README files

Note that we don't change the URL for BAD_GIT_REPOSITORY as we need them
to return 500 while trying to clone. If we use Nexedi Gitlab repo for
non-existing repo, we get redirected to login page. Hence, we keep using
git.erp5.org for `repo/nowhere`.

/reviewed-on !6
parent a4412af1
...@@ -143,7 +143,7 @@ the recipe will pick up the latest commit on the remote master branch:: ...@@ -143,7 +143,7 @@ the recipe will pick up the latest commit on the remote master branch::
... ...
... [git-clone] ... [git-clone]
... recipe = slapos.recipe.build:gitclone ... recipe = slapos.recipe.build:gitclone
... repository = http://git.erp5.org/repos/slapos.recipe.build.git ... repository = https://lab.nexedi.com/nexedi/slapos.recipe.build.git
... use-cache = true ... use-cache = true
... """) ... """)
...@@ -179,8 +179,8 @@ run it will take the latest commit on this remote branch:: ...@@ -179,8 +179,8 @@ run it will take the latest commit on this remote branch::
... ...
... [git-clone] ... [git-clone]
... recipe = slapos.recipe.build:gitclone ... recipe = slapos.recipe.build:gitclone
... repository = http://git.erp5.org/repos/slapos.recipe.build.git ... repository = https://lab.nexedi.com/nexedi/slapos.recipe.build.git
... branch = build ... branch = build_remove_downloaded_files
... """) ... """)
Then let's run the buildout:: Then let's run the buildout::
...@@ -201,7 +201,7 @@ And let's see that current branch is "build":: ...@@ -201,7 +201,7 @@ And let's see that current branch is "build"::
>>> import subprocess >>> import subprocess
>>> cd('parts', 'git-clone') >>> cd('parts', 'git-clone')
>>> print(subprocess.check_output(['git', 'branch'], universal_newlines=True)) >>> print(subprocess.check_output(['git', 'branch'], universal_newlines=True))
* build * build_remove_downloaded_files
When updating, it will do a "git fetch; git reset build":: When updating, it will do a "git fetch; git reset build"::
...@@ -225,7 +225,7 @@ This option has priority over the "branch" option:: ...@@ -225,7 +225,7 @@ This option has priority over the "branch" option::
... ...
... [git-clone] ... [git-clone]
... recipe = slapos.recipe.build:gitclone ... recipe = slapos.recipe.build:gitclone
... repository = http://git.erp5.org/repos/slapos.recipe.build.git ... repository = https://lab.nexedi.com/nexedi/slapos.recipe.build.git
... revision = 2566127 ... revision = 2566127
... """) ... """)
...@@ -274,7 +274,7 @@ extend an existing section specifying a branch):: ...@@ -274,7 +274,7 @@ extend an existing section specifying a branch)::
... ...
... [git-clone-with-branch] ... [git-clone-with-branch]
... recipe = slapos.recipe.build:gitclone ... recipe = slapos.recipe.build:gitclone
... repository = http://git.erp5.org/repos/slapos.recipe.build.git ... repository = https://lab.nexedi.com/nexedi/slapos.recipe.build.git
... revision = 2566127 ... revision = 2566127
... ...
... [git-clone] ... [git-clone]
...@@ -307,7 +307,7 @@ and branch parameter is ignored:: ...@@ -307,7 +307,7 @@ and branch parameter is ignored::
... ...
... [git-clone] ... [git-clone]
... recipe = slapos.recipe.build:gitclone ... recipe = slapos.recipe.build:gitclone
... repository = http://git.erp5.org/repos/slapos.recipe.build.git ... repository = https://lab.nexedi.com/nexedi/slapos.recipe.build.git
... branch = mybranch ... branch = mybranch
... revision = 2566127 ... revision = 2566127
... """) ... """)
...@@ -347,7 +347,7 @@ erase your local modifications by specifying the "develop" flag:: ...@@ -347,7 +347,7 @@ erase your local modifications by specifying the "develop" flag::
... ...
... [git-clone] ... [git-clone]
... recipe = slapos.recipe.build:gitclone ... recipe = slapos.recipe.build:gitclone
... repository = http://git.erp5.org/repos/slapos.recipe.build.git ... repository = https://lab.nexedi.com/nexedi/slapos.recipe.build.git
... develop = true ... develop = true
... """) ... """)
...@@ -412,7 +412,7 @@ In case of uninstall, buildout will keep the repository directory:: ...@@ -412,7 +412,7 @@ In case of uninstall, buildout will keep the repository directory::
... ...
... [git-clone] ... [git-clone]
... recipe = slapos.recipe.build:gitclone ... recipe = slapos.recipe.build:gitclone
... repository = http://git.erp5.org/repos/slapos.recipe.build.git ... repository = https://lab.nexedi.com/nexedi/slapos.recipe.build.git
... develop = true ... develop = true
... # Triggers uninstall/install because of section signature change ... # Triggers uninstall/install because of section signature change
... foo = bar ... foo = bar
......
...@@ -13,7 +13,7 @@ from slapos.recipe.gitclone import GIT_CLONE_ERROR_MESSAGE, \ ...@@ -13,7 +13,7 @@ from slapos.recipe.gitclone import GIT_CLONE_ERROR_MESSAGE, \
optionflags = (doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE) optionflags = (doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE)
GIT_REPOSITORY = 'http://git.erp5.org/repos/slapos.recipe.build.git' GIT_REPOSITORY = 'https://lab.nexedi.com/nexedi/slapos.recipe.build.git'
BAD_GIT_REPOSITORY = 'http://git.erp5.org/repos/nowhere' BAD_GIT_REPOSITORY = 'http://git.erp5.org/repos/nowhere'
REVISION = '2566127' REVISION = '2566127'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment