Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cdo
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
cdo
Commits
5dffc322
Commit
5dffc322
authored
8 years ago
by
Ralf Mueller
Browse files
Options
Downloads
Patches
Plain Diff
create tasks from manual build only of they are available; output everything per default
parent
65c4a6ed
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Rakefile
+7
-7
7 additions, 7 deletions
Rakefile
with
7 additions
and
7 deletions
Rakefile
+
7
−
7
View file @
5dffc322
...
...
@@ -15,7 +15,7 @@ if @userConfig.empty? then
exit
(
1
)
end
# get setup from the environment
@debug
=
true
==
Rake
.
verbose
?
true
:
false
@debug
=
true
#
== Rake.verbose ? true : false
@user
=
ENV
[
'USER'
]
# basic compilers handled by the default configuration: ./config/default
@defaultCompilers
=
%w[icpc icc clang clang++ gcc g++]
...
...
@@ -165,31 +165,31 @@ def builder2task(builder,useHostAsName=false,syncSource=true)
#desc "configure on host: %s, compiler %s, branch: %s" % [builder.host, builder.compiler, getBranchName]
task
configTaskName
.
to_sym
do
|
t
|
dbg
(
"call
#{
builder
.
configureCall
}
"
)
execute
(
"
cd
#{
builder
.
targetDir
}
;
#{
builder
.
configureCall
}
"
,
builder
)
execute
(
"
#{
builder
.
configureCall
}
"
,
builder
)
end
taskChain
<<
configTaskName
#desc "build on host: %s, compiler %s, branch: %s" % [builder.host, builder.compiler, getBranchName]
task
buildTaskName
.
to_sym
do
|
t
|
execute
(
"
cd
#{
builder
.
targetDir
}
;
make -j4"
,
builder
)
execute
(
"make -j4"
,
builder
)
end
taskChain
<<
buildTaskName
#desc "check on host: %s, compiler %s, branch: %s" % [builder.host, builder.compiler, getBranchName]
task
checkTaskName
.
to_sym
do
|
t
|
execute
(
"
cd
#{
builder
.
targetDir
}
;
make check"
,
builder
)
execute
(
"make check"
,
builder
)
end
taskChain
<<
checkTaskName
# }}}
#desc "build on host: %s, compiler %s, branch: %s" % [builder.host, builder.compiler, getBranchName]
task
cleanTaskName
.
to_sym
do
|
t
|
execute
(
"
cd
#{
builder
.
targetDir
}
;
make clean"
,
builder
)
execute
(
"make clean"
,
builder
)
end
#desc "check on host: %s, compiler %s, branch: %s" % [builder.host, builder.compiler, getBranchName]
task
checkVTaskName
.
to_sym
do
|
t
|
execute
(
"
cd
#{
builder
.
targetDir
}
;
./src/cdo -V"
,
builder
)
execute
(
"./src/cdo -V"
,
builder
)
end
# show remote config.log file
...
...
@@ -246,7 +246,7 @@ Builder = Struct.new(:host,:hostname,:username,:compiler,:targetDir,:configureCa
pp
builder
builder2task
(
builder
,
true
,
config
[
'sync'
])
}
}
if
@userConfig
.
has_key?
(
'builders'
)
# }}}
#
# check connections {{{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment