Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
Managetests
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Web
Managetests
Commits
700cf4ca
Commit
700cf4ca
authored
Mar 02, 2019
by
Mattia Rizzolo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move the website checkout inside a build/ directory
Signed-off-by:
Mattia Rizzolo
<
mattia@debian.org
>
parent
863957a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
managetests/branches.py
managetests/branches.py
+5
-5
managetests/gitlab.py
managetests/gitlab.py
+1
-1
No files found.
managetests/branches.py
View file @
700cf4ca
...
...
@@ -229,27 +229,27 @@ class Branch:
# Update the bare git repository and checkout the branch
subprocess
.
call
([
"git"
,
"clone"
,
"--depth"
,
"1"
,
"--branch"
,
self
.
name
,
git_url
,
str
(
branch
),
str
(
branch
/
"build"
),
],
stdout
=
log_file
.
open
(
"a"
),
stderr
=
subprocess
.
STDOUT
)
# Get the commit of the branch
commit_file
=
branch
/
"commit"
subprocess
.
call
([
"git"
,
"--git-dir"
,
str
(
branch
/
".git"
),
"rev-parse"
,
"git"
,
"--git-dir"
,
str
(
branch
/
"
build"
/
"
.git"
),
"rev-parse"
,
self
.
name
],
stdout
=
commit_file
.
open
(
"w"
),
stderr
=
log_file
.
open
(
"a"
))
self
.
update_status
(
"running"
)
# Copy and load the configuration file
if
not
(
branch
/
"managetests.json"
).
exists
():
if
not
(
branch
/
"
build"
/
"
managetests.json"
).
exists
():
log
(
"[!] No managetests.json found in the branch!"
)
log
(
"[!] Aborting!"
)
return
False
shutil
.
copy
(
str
(
branch
/
"managetests.json"
),
str
(
branch
/
"
config
.json"
)
str
(
branch
/
"
build"
/
"
managetests.json"
),
str
(
branch
/
"
managetests
.json"
)
)
self
.
load_config
()
...
...
managetests/gitlab.py
View file @
700cf4ca
...
...
@@ -29,7 +29,7 @@ class GitLabAPI:
def
call
(
self
,
method
,
endpoint
,
params
=
None
,
data
=
None
):
"""Make a raw call to the GitLab API"""
if
params
is
not
None
:
if
params
is
None
:
params
=
{}
if
data
is
None
:
data
=
{}
...
...
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