Skip to content

Hide build artifacts #290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- `--min-free-space=N` command-line argument to fail if free space is below requred value

### Changed
- Put build artifacts in a separate directory to reduce clutter.
- Change 266 files from CRLF to LF.
- Update .gitattributes so we have consistent line endings
- Run tests on push as well as on a pull request so developers can see impact
Expand Down
5 changes: 4 additions & 1 deletion lib/arduino_ci/cpp_library.rb
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,10 @@ def test_args(aux_libraries, ci_gcc_config)
# @return [Pathname] path to the compiled test executable
def build_for_test_with_configuration(test_file, aux_libraries, gcc_binary, ci_gcc_config)
base = test_file.basename
executable = Pathname.new("unittest_#{base}.bin").expand_path
# hide build artifacts
build_dir = '.arduino_ci'
Dir.mkdir build_dir unless File.exist?(build_dir)
executable = Pathname.new("#{build_dir}/unittest_#{base}.bin").expand_path
File.delete(executable) if File.exist?(executable)
arg_sets = []
arg_sets << ["-std=c++0x", "-o", executable.to_s, "-DARDUINO=100"]
Expand Down