Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
6e72fb47
Commit
6e72fb47
authored
Jan 23, 2013
by
Carson McDonald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add build summary at the end of a build.
parent
538bbfc1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
Rakefile
Rakefile
+8
-1
tasks/mruby_build.rake
tasks/mruby_build.rake
+10
-0
No files found.
Rakefile
View file @
6e72fb47
...
...
@@ -42,7 +42,14 @@ depfiles += MRuby.targets.reject { |n, t| n == 'host' }.map { |n, t|
}.
flatten
desc
"build all targets, install (locally) in-repo"
task
:all
=>
depfiles
task
:all
=>
depfiles
do
puts
puts
"Build summary:"
puts
MRuby
.
each_target
do
print_build_summary
end
end
desc
"run all mruby tests"
task
:test
=>
MRuby
.
targets
.
values
.
map
{
|
t
|
t
.
exefile
(
"
#{
t
.
build_dir
}
/test/mrbtest"
)
}
do
...
...
tasks/mruby_build.rake
View file @
6e72fb47
...
...
@@ -146,6 +146,16 @@ module MRuby
sh
"
#{
filename
mrbtest
}
"
puts
end
def
print_build_summary
puts
"================================================"
puts
" Config Name:
#{
@name
}
"
puts
" Output Directory:
#{
self
.
build_dir
}
"
puts
" Binaries:
#{
@bins
.
join
(
', '
)
}
"
unless
@bins
.
empty?
puts
" Included Gems:
#{
@gems
.
map
{
|
g
|
g
.
name
}
.join(', ')}"
unless
@gems
.
empty?
puts
"================================================"
puts
end
end
# Build
class
CrossBuild
<
Build
...
...
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