Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.recipe.build
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.recipe.build
Commits
47fbd181
Commit
47fbd181
authored
Nov 28, 2018
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add different repo for tests
parent
7c9cd020
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
README.rst
README.rst
+1
-2
slapos/recipe/build/tests.py
slapos/recipe/build/tests.py
+2
-3
No files found.
README.rst
View file @
47fbd181
...
...
@@ -462,8 +462,7 @@ to 'false'::
[git-clone]
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/tiwariayush/erp5
branch = pyodide
repository = https://lab.nexedi.com/tiwariayush/test_erp5
clone-submodules = false
Other options
...
...
slapos/recipe/build/tests.py
View file @
47fbd181
...
...
@@ -15,7 +15,7 @@ optionflags = (doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE)
GIT_REPOSITORY
=
'https://lab.nexedi.com/nexedi/slapos.recipe.build.git'
BAD_GIT_REPOSITORY
=
'http://git.erp5.org/repos/nowhere'
GIT_REPOSITORY_WITH_SUBMODULES
=
'https://lab.nexedi.com/tiwariayush/erp5'
GIT_REPOSITORY_WITH_SUBMODULES
=
'https://lab.nexedi.com/tiwariayush/
test_
erp5'
REVISION
=
'2566127'
def
setUp
(
test
):
...
...
@@ -130,13 +130,12 @@ class GitCloneNonInformativeTests(unittest.TestCase):
def
test_clone_submodules_by_default
(
self
,
ignore_submodules
=
False
):
recipe
=
self
.
makeGitCloneRecipe
(
{
'repository'
:
GIT_REPOSITORY_WITH_SUBMODULES
,
'branch'
:
'pyodide'
,
'clone_submodules'
:
str
(
ignore_submodules
).
lower
()}
)
recipe
.
install
()
git_repository_path
=
os
.
path
.
join
(
self
.
parts_directory_path
,
"test"
)
self
.
assertTrue
(
os
.
path
.
exists
(
git_repository_path
))
submodule_repo_path
=
os
.
path
.
join
(
git_repository_path
,
"bt5/erp5_notebook"
)
submodule_repo_path
=
os
.
path
.
join
(
git_repository_path
,
'dir2'
,
'test_erp5_submodule'
)
# Check if the folder exists
self
.
assertTrue
(
os
.
path
.
exists
(
git_repository_path
))
# Check is there is anything in submodule repository path
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment