@@ -88,26 +88,6 @@ def assure(message, &block)
88
88
assure ( "Installing aux library '#{ l } '" ) { @arduino_cmd . install_library ( l ) }
89
89
end
90
90
91
- attempt ( "Setting compiler warning level" ) { @arduino_cmd . set_pref ( "compiler.warning_level" , "all" ) }
92
-
93
- library_examples . each do |example_path |
94
- ovr_config = config . from_example ( example_path )
95
- ovr_config . platforms_to_build . each do |p |
96
- board = all_platforms [ p ] [ :board ]
97
- assure ( "Switching to board for #{ p } (#{ board } )" ) { @arduino_cmd . use_board ( board ) }
98
- example_name = File . basename ( example_path )
99
- attempt ( "Verifying #{ example_name } " ) do
100
- ret = @arduino_cmd . verify_sketch ( example_path )
101
- unless ret
102
- puts
103
- puts "Last command: #{ @arduino_cmd . last_msg } "
104
- puts @arduino_cmd . last_err
105
- end
106
- ret
107
- end
108
- end
109
- end
110
-
111
91
config . platforms_to_unittest . each do |p |
112
92
board = all_platforms [ p ] [ :board ]
113
93
assure ( "Switching to board for #{ p } (#{ board } )" ) { @arduino_cmd . use_board ( board ) }
@@ -131,4 +111,24 @@ def assure(message, &block)
131
111
end
132
112
end
133
113
114
+ attempt ( "Setting compiler warning level" ) { @arduino_cmd . set_pref ( "compiler.warning_level" , "all" ) }
115
+
116
+ library_examples . each do |example_path |
117
+ ovr_config = config . from_example ( example_path )
118
+ ovr_config . platforms_to_build . each do |p |
119
+ board = all_platforms [ p ] [ :board ]
120
+ assure ( "Switching to board for #{ p } (#{ board } )" ) { @arduino_cmd . use_board ( board ) }
121
+ example_name = File . basename ( example_path )
122
+ attempt ( "Verifying #{ example_name } " ) do
123
+ ret = @arduino_cmd . verify_sketch ( example_path )
124
+ unless ret
125
+ puts
126
+ puts "Last command: #{ @arduino_cmd . last_msg } "
127
+ puts @arduino_cmd . last_err
128
+ end
129
+ ret
130
+ end
131
+ end
132
+ end
133
+
134
134
terminate ( true )
0 commit comments