summaryrefslogtreecommitdiffhomepage
path: root/travis_config.rb
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-12-26 17:18:41 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2019-12-27 11:05:56 +0900
commit716102fff38f4067d9b9fcf6bb0ff9e6dbd78105 (patch)
tree416ee74df3a5e00ce5daa54666ddb0378f4c3ed6 /travis_config.rb
parentef6805f599c19634809158da42ad7059ef0a9c5d (diff)
downloadmruby-716102fff38f4067d9b9fcf6bb0ff9e6dbd78105.tar.gz
mruby-716102fff38f4067d9b9fcf6bb0ff9e6dbd78105.zip
Enable `MRB_GC_STRESS` test on CI
The `debug` build target (`MRB_GC_STRESS` is enabled) on CI have been compiled but not tested so far. However, I think testing with `MRB_GC_STRESS` is effective (in fact, I found #4907 bug). Therefore, I integrated `debug` and `full-debug` build targets to enable `MRB_GC_STRESS` testing. Testing with `MRB_GC_STRESS` takes a little time, but compiling takes more time, so CI execution time does not increase due to decrease of build target.
Diffstat (limited to 'travis_config.rb')
-rw-r--r--travis_config.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/travis_config.rb b/travis_config.rb
index 35a086e1f..a8189dee6 100644
--- a/travis_config.rb
+++ b/travis_config.rb
@@ -19,9 +19,9 @@ MRuby::Build.new('full-debug') do |conf|
# include all core GEMs
conf.gembox 'full-core'
- conf.cc.defines += %w(MRB_ENABLE_DEBUG_HOOK)
- conf.cc.flags += %w(-fsanitize=address,undefined)
+ conf.cc.flags += %w(-Werror=declaration-after-statement -fsanitize=address,undefined)
conf.linker.flags += %W(-fsanitize=address,undefined)
+ conf.cc.defines += %w(MRB_GC_STRESS MRB_METHOD_CACHE MRB_ENABLE_DEBUG_HOOK)
conf.enable_test
end