Skip to content

Commit 90c5504

Browse files
committed
Hide build artifacts.
1 parent d06591a commit 90c5504

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/arduino_ci/cpp_library.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,10 @@ def test_args(aux_libraries, ci_gcc_config)
491491
# @return [Pathname] path to the compiled test executable
492492
def build_for_test_with_configuration(test_file, aux_libraries, gcc_binary, ci_gcc_config)
493493
base = test_file.basename
494-
executable = Pathname.new("unittest_#{base}.bin").expand_path
494+
# hide build artifacts
495+
build_dir = '.arduino_ci'
496+
Dir.mkdir build_dir unless File.exists?(build_dir)
497+
executable = Pathname.new("#{build_dir}/unittest_#{base}.bin").expand_path
495498
File.delete(executable) if File.exist?(executable)
496499
arg_sets = []
497500
arg_sets << ["-std=c++0x", "-o", executable.to_s, "-DARDUINO=100"]

0 commit comments

Comments
 (0)