Skip to content

Commit 53437a9

Browse files
committed
DEBUG REMOVE ME
1 parent 4d69355 commit 53437a9

File tree

4 files changed

+34
-12
lines changed

4 files changed

+34
-12
lines changed

.travis.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,16 @@ matrix:
2020
#before_install: gem install bundler -v 1.15.4
2121
script:
2222
- g++ -v
23-
- bundle install
24-
- bundle exec rubocop --version
25-
- bundle exec rubocop -D .
26-
- bundle exec rspec --backtrace
23+
# - bundle install
24+
# - bundle exec rubocop --version
25+
# - bundle exec rubocop -D .
26+
# - bundle exec rspec --backtrace
2727
- cd SampleProjects/TestSomething
28-
- bundle install
29-
- bundle exec arduino_ci.rb
28+
# - bundle install
29+
# - bundle exec arduino_ci.rb
3030
- cd ../NetworkLib
31+
- cd scripts
32+
- bash -x ./install.sh
33+
- cd ..
3134
- bundle install
3235
- bundle exec arduino_ci.rb
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
# if we don't have an Ethernet library already (say, in new install or for an automated test),
4+
# then get the custom one we want to use for testing
5+
cd $(bundle exec arduino_library_location.rb)
6+
if [ ! -d ./Ethernet ] ; then
7+
git clone https://github.com/Arduino-CI/Ethernet.git
8+
fi

appveyor.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@ before_test:
1919
test_script:
2020
# https://help.appveyor.com/discussions/problems/5170-progresspreference-not-works-always-shown-preparing-modules-for-first-use-in-stderr
2121
- ps: $ProgressPreference = "SilentlyContinue"
22-
- bundle exec rubocop --version
23-
- bundle exec rubocop -D .
24-
- bundle exec rspec --backtrace
22+
# - bundle exec rubocop --version
23+
# - bundle exec rubocop -D .
24+
# - bundle exec rspec --backtrace
2525
- cd SampleProjects\TestSomething
26-
- bundle install
27-
- bundle exec arduino_ci.rb
26+
# - bundle install
27+
# - bundle exec arduino_ci.rb
2828
- cd ../NetworkLib
29+
- cd scripts
30+
- install.sh
31+
- cd ..
2932
- bundle install
3033
- bundle exec arduino_ci.rb

lib/arduino_ci/cpp_library.rb

+9-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,12 @@ def header_dirs
290290
unbundled = header_files.reject { |path| vendor_bundle?(path) }
291291
unexcluded = unbundled.reject { |path| in_exclude_dir?(path) }
292292
files = unexcluded.select { |path| HPP_EXTENSIONS.include?(path.extname.downcase) }
293-
files.map(&:dirname).uniq
293+
ret = files.map(&:dirname).uniq
294+
puts "header_dirs for #{@base_dir} = #{ret}"
295+
puts "from header_files: #{header_files}"
296+
puts "all items in library dir: #{Dir.entries(@arduino_lib_dir)}"
297+
puts "all files in dir: #{Dir.entries(@base_dir)}"
298+
ret
294299
end
295300

296301
# wrapper for the GCC command
@@ -328,6 +333,7 @@ def arduino_library_src_dirs(aux_libraries)
328333
# @return [Array<String>] The GCC command-line flags necessary to include those libraries
329334
def include_args(aux_libraries)
330335
all_aux_include_dirs = arduino_library_src_dirs(aux_libraries)
336+
puts "all_aux_include_dirs from #{aux_libraries} = \n #{all_aux_include_dirs}"
331337
places = [ARDUINO_HEADER_DIR, UNITTEST_HEADER_DIR] + header_dirs + all_aux_include_dirs
332338
places.map { |d| "-I#{d}" }
333339
end
@@ -411,6 +417,8 @@ def build_for_test_with_configuration(test_file, aux_libraries, gcc_binary, ci_g
411417
# combine library.properties defs (if existing) with config file.
412418
# TODO: as much as I'd like to rely only on the properties file(s), I think that would prevent testing 1.0-spec libs
413419
full_aux_libraries = arduino_library_dependencies.nil? ? aux_libraries : aux_libaries + arduino_library_dependencies
420+
puts "full_aux_libraries = #{full_aux_libraries}"
421+
puts "after aux_libraries = #{aux_libraries}"
414422
arg_sets << test_args(full_aux_libraries, ci_gcc_config)
415423
arg_sets << cpp_files_libraries(full_aux_libraries).map(&:to_s)
416424
arg_sets << [test_file.to_s]

0 commit comments

Comments
 (0)