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
f715f2dd
Unverified
Commit
f715f2dd
authored
Jun 13, 2018
by
take-cheeze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix unnecessary rebuild of tests.
parent
23a4e714
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
mrbgems/mruby-test/mrbgem.rake
mrbgems/mruby-test/mrbgem.rake
+11
-7
No files found.
mrbgems/mruby-test/mrbgem.rake
View file @
f715f2dd
...
@@ -155,14 +155,18 @@ MRuby::Gem::Specification.new('mruby-test') do |spec|
...
@@ -155,14 +155,18 @@ MRuby::Gem::Specification.new('mruby-test') do |spec|
# store the last gem selection and make the re-build
# store the last gem selection and make the re-build
# of the test gem depending on a change to the gem
# of the test gem depending on a change to the gem
# selection
# selection
active_gems
=
"
#{
build_dir
}
/active_gems.lst"
active_gems_path
=
"
#{
build_dir
}
/active_gems_path.lst"
FileUtils
.
mkdir_p
File
.
dirname
(
active_gems
)
active_gem_list
=
if
File
.
exist?
active_gems_path
open
(
active_gems
,
'w+'
)
do
|
f
|
File
.
read
active_gems_path
build
.
gems
.
each
do
|
g
|
else
f
.
puts
g
.
name
FileUtils
.
mkdir_p
File
.
dirname
(
active_gems_path
)
nil
end
end
current_gem_list
=
build
.
gems
.
map
(
&
:name
).
join
(
"
\n
"
)
if
active_gem_list
!=
current_gem_list
File
.
write
active_gems_path
,
current_gem_list
end
end
file
clib
=>
active_gems
file
clib
=>
active_gems
_path
file
mlib
=>
clib
file
mlib
=>
clib
file
clib
=>
init
do
|
t
|
file
clib
=>
init
do
|
t
|
...
...
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