Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Colas Pomies
LbNightlyTools
Commits
14d4c8a9
Commit
14d4c8a9
authored
Feb 10, 2015
by
Marco Clemencic
Browse files
added tentetive Ganga checkout method
parent
91679614
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/LbNightlyTools/CheckoutMethods.py
View file @
14d4c8a9
...
...
@@ -421,6 +421,22 @@ def lhcbintegrationtests(desc, rootdir='.'):
desc
.
checkout_opts
[
'commit'
]
=
desc
.
version
return
git
(
desc
,
rootdir
)
def
ganga
(
desc
,
rootdir
=
'.'
):
'''
Special hybrid checkout needed to release Ganga.
'''
__log__
.
debug
(
'getting checkout script'
)
script_url
=
'svn+ssh://svn.cern.ch/reps/ganga/trunk/external/LHCbSetupProject/scripts/lhcb-prepare'
call
([
'svn'
,
'export'
,
script_url
],
cwd
=
rootdir
)
__log__
.
debug
(
'running checkout script'
)
call
([
os
.
path
.
join
(
rootdir
,
'lhcb-prepare'
),
'-d'
,
rootdir
,
desc
.
version
.
lower
()])
projdir
=
os
.
path
.
join
(
rootdir
,
desc
.
baseDir
)
__log__
.
debug
(
'creating Makefile'
)
with
open
(
os
.
path
.
join
(
projdir
,
'Makefile'
),
'w'
)
as
f
:
f
.
write
(
'include ${LBCONFIGURATIONROOT}/data/Makefile
\n
'
)
# set default checkout method
default
=
getpack
# pylint: disable=C0103
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