72 Commits

Author SHA1 Message Date
KOBAYASHI Shuji bb98fd78c3 Use Rake.verbose instead of $verbose and $pp_show in build scripts
The incompatibility that the commands of `FileUtils` origin output verbose
by default due to the changes in d8a5163b and 26e6e75b is also fixed.
2019-12-28 17:03:37 +09:00
Yukihiro "Matz" Matsumoto d2f34a8455 Merge pull request #4910 from shuujii/use-Rake-DSL-instead-of-commands-of-FileUtils
Use Rake DSL instead of commands of `FileUtils`
2019-12-27 18:35:19 +09:00
KOBAYASHI Shuji 26e6e75ba6 Use Rake DSL instead of commands of FileUtils
- Respect `--verbose(-v)` and `--dry-run(-n)` options.
- Silence warnings to keyword arguments on Ruby 2.7.
2019-12-27 16:49:32 +09:00
Yukihiro "Matz" Matsumoto d8a5163b24 Support -v flag of rake; close #4887
The patch was originally written by @take-cheese. I have fixed the
conflict caused by `minirake` deletion - @matz.
2019-12-27 11:05:56 +09:00
Yukihiro "Matz" Matsumoto c268e36e44 Require Regexp.escape before interpolating build_dir; fix #4817 2019-11-11 18:13:24 +09:00
David Siaw e1e96c0cf4 change doc directory and reduce warnings 2019-08-26 00:23:28 +09:00
KOBAYASHI Shuji 3110d84ed8 Defer several build libraries loading until needed 2019-08-25 09:48:07 +09:00
KOBAYASHI Shuji e7b49e3f09 Remove unused constant in Rakefile; ref e312842a 2019-08-24 11:30:03 +09:00
KOBAYASHI Shuji e312842a18 Refine processing for gem lock file
- Defer YAML library and lock file loading until needed.
- Don't write empty parts into lock file.
- Extract code to read/write lock file to `MRuby::Lockfile`.
- `MRuby::Lockfile.disable` disables the use of lock file.
2019-08-22 21:40:01 +09:00
take-cheeze 8e7a3a4df1 Take commit hash of mruby too 2019-08-22 03:03:24 +09:00
Yukihiro "Matz" Matsumoto 90bffaa2a6 Merge pull request #4180 from take-cheeze/lock_file
Support lock file for git.
2019-08-21 17:17:30 +09:00
KOBAYASHI Shuji 441c964716 Allow enable_bintest without enable_test in build config 2019-03-08 22:00:06 +09:00
KOBAYASHI Shuji 107dc0c778 Avoid a side effect when run Rake without execution of tasks
Avoid directory creation when run `rake -T` etc.
2019-01-18 23:29:35 +09:00
KOBAYASHI Shuji 96bea076ec Refine description for rake test tasks.
Before:
    $ rake -T test
    rake test_test  # run all mruby tests

After:
    $ rake -T test
    rake test  # run all mruby tests
2018-12-24 12:12:10 +09:00
take-cheeze b6850f88a1 Support lock file for git. 2018-12-06 11:47:17 +09:00
take-cheeze b37b312081 Rename libmruby stuff to avoid confusion 2018-10-29 14:07:16 +09:00
take-cheeze eaf463ada3 Run tests parallelly for each target. 2018-06-22 11:43:14 +09:00
Uchio KONDO 38db5e550f Some adjustments 2017-04-04 12:16:53 +09:00
Tomasz Dabrowski bc721ec45d Gitlab tests for multiple configurations
Gitlab testing is introduced, using GitLab CI, to test many different configurations:
 - 32/64 bit architecture
 - float/double
 - 16/32/64 bit int size
 - none/NaN/word boxing
 - ASCII/UTF8

using various compilers:
 - gcc-4.7
 - gcc-4.8
 - gcc-4.9
 - gcc-5
 - gcc-6
 - clang-3.5
 - clang-3.6
 - clang-3.7
 - clang-3.8
 - clang-3.9
2017-02-16 13:50:27 +01:00
takahashim f377753b16 fix rake doc error
using mrbdoc
2015-10-09 11:48:51 +09:00
Tatsuhiro Tsujikawa 291265ec86 Customize installation directory using INSTALL_DIR environment variable
Previously, minirake installed several commands (e.g., mrbc) in
repository locally under bin directory.  But there was no knob for
users to change this directory.  It effectively made `make distcheck`
fail if mruby was embedded into project managed by autotools.

This change adds a way for the user to change installation directory
by setting INSTALL_DIR environment variable.
2015-09-11 00:15:01 +09:00
Zachary Scott bacb826868 Add build_mrbtest after config block is evaluated
This allows us to add `enable_test` anywhere in a build target,
without having to worry about the order in which they are included.

Previously, there was a bug that occured when adding 'mruby-test' gem
to dependencies before additional gems.

Instead of adding the 'mruby-test' gem dependency manually to a test build,
we now only need to call `enable_test` in the target. This also allows us to
call `test_enabled?` downstream when running mruby tests ourselves.

/cc #2924
2015-09-03 01:02:53 -04:00
Zachary Scott 133d57cb0d Add mruby-test build config and update :test task to use mrbgem binary
Removed old mrbgems_test.rake which was merged into mrbgem spec
2015-08-22 10:21:52 -04:00
Huei-Horng Yo be2c156876 Detect if ncurses' backend is terminfo or termcap. fixes #2662
Borrowed from @mattn's code at:
https://github.com/mruby/mruby/issues/2662#issuecomment-65535705

Signed-off-by: Huei-Horng Yo <hiroshi@ghostsinthelab.org>
2015-06-09 21:07:12 +08:00
take_cheeze 6460ef77bc Compile mruby compiler as mrbgem.
Compiler codes is moved to "mruby-compiler".
Executable `mrbc` is moved to "mruby-bin-mrbc".
2015-06-01 21:53:55 +09:00
furunkel a96b871c46 Add task for running and plotting benchmarks 2015-04-23 22:27:19 +02:00
Julian Aron Prenner 1aef549971 Set correct build dir for bins 2015-01-02 14:47:57 +01:00
mimaki e5bacc03f2 Add mruby debugger (mrdb) 2014-11-18 23:33:32 +09:00
take_cheeze c07feca570 Add :doc task to run document generator. 2014-06-13 17:28:40 +09:00
take_cheeze 9ac23ae214 Support extension '.cc' in globbing. 2014-05-20 22:52:08 +09:00
Daniel Bovensiepen d3195277ff Add Rake command 'deep_clean' which cleans everything including the mrbgems clone directories. 2014-04-20 05:35:47 +08:00
Yukihiro "Matz" Matsumoto 32818bd25e should build "all" before "test"; close #1774 2014-03-01 15:20:16 +09:00
cremno d1f474c239 Rakefile: make bin directory 2014-02-12 00:04:42 +01:00
take_cheeze 2e20232daf pass gem_flags_after_libraries 2014-02-05 14:22:19 +09:00
take_cheeze b6ab216f97 support file extension .cpp/.cxx in mrbgem and tool 2013-08-26 17:56:49 +09:00
Carson McDonald a075e0abce Don't ignore host when adding libmruby.a to deps. 2013-04-11 13:55:48 -04:00
Masaki Muranaka 9d8143f930 Move mirb and mruby to mrbgems. 2013-04-11 15:22:07 +09:00
Masaki Muranaka 9cf7d54b57 Move apps in gems to #{MRUBY_ROOT}/bin/ when apps is built for "host". 2013-04-11 12:53:54 +09:00
Masaki Muranaka 1b4ad941b4 Use not tool/ but tools/. This is for naming consistency. 2013-04-11 12:52:20 +09:00
Masaki Muranaka 9c9c3b411f Cosmetic changes. 2013-04-11 12:49:57 +09:00
Yukihiro "Matz" Matsumoto ad11d3144e Merge pull request #975 from crimsonwoods/modify_build_script
Improve Android platform support.
2013-03-14 08:15:40 -07:00
crimsonwoods ef23ae4e41 support 'Cygwin' as build platform. 2013-03-14 23:51:44 +09:00
Yuichiro MASUI ab8a5aa572 Change default gem path. 2013-03-10 14:51:59 +09:00
Masaki Muranaka cb2ad2c439 Add Support to build loadable modules defined in mrbgems. 2013-03-07 14:23:26 +09:00
Yukihiro Matz Matsumoto 494e133f61 remove installing executable first to avoid text-file-busy when investigating on debugger 2013-03-02 15:20:48 +09:00
Daniel Bovensiepen bdd908c92e Rake respects verbose flag also for test and clean target 2013-02-28 10:30:30 +00:00
Yuichiro MASUI 0970ca9572 Support to build on pwd != mruby source root 2013-02-23 19:03:59 +09:00
Yuichiro MASUI a74f92b46b Generate mrbtest.a file for sparete from driver.o 2013-02-03 13:38:18 +09:00
Yuichiro MASUI 5a152c82e6 load MRUBY_CONFIG script after 'build_config.rb' 2013-01-28 18:22:11 +09:00
Yukihiro Matz Matsumoto 0410bb7623 remove bin/command first to avoid text file busy 2013-01-28 00:50:22 +09:00