From 3a8d7bdf82dddb8d5e54330503d9ed11b4f68ad0 Mon Sep 17 00:00:00 2001 From: KOBAYASHI Shuji Date: Fri, 8 Jan 2021 20:32:08 +0900 Subject: Delay test code build until `rake test` With this change, the test code will not be built unless `rake test` is run, so there will be almost no side effects even if `enable_test` is always set (but, gems specified by `add_test_dependency` are included in `libmruby.a`). Also added are `test: build` task, which only builds the test code (including the main code), and `test: run` task, which only runs tests independent of build. Therefore, the idiom for building in parallel and not running tests in parallel is `rake -m test:build && rake test:run`. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 1e09654be..c47a54494 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,4 @@ env: - MRUBY_CONFIG=ci/gcc-clang script: - - rake -m && rake test + - rake -m test:build && rake test:run -- cgit v1.2.3