File tree 4 files changed +12
-4
lines changed
4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
8
8
### Added
9
9
10
10
### Changed
11
+ - Unit tests and examples are now executed alphabetically by filename
11
12
12
13
### Deprecated
13
14
14
15
### Removed
15
16
16
17
### Fixed
18
+ - Library installation no longer "fails" if the library is already installed
19
+ - Platform definition for ` mega2560 ` now includes proper AVR compiler flag
17
20
18
21
### Security
19
22
Original file line number Diff line number Diff line change @@ -190,7 +190,10 @@ def install_boards(boardfamily)
190
190
# @param name [String] the library name
191
191
# @return [bool] whether the command succeeded
192
192
def _install_library ( library_name )
193
- success = run_and_capture ( flag_install_library , library_name ) [ :success ]
193
+ result = run_and_capture ( flag_install_library , library_name )
194
+
195
+ already_installed = result [ :err ] . include? ( "Library is already installed: #{ library_name } " )
196
+ success = result [ :success ] || already_installed
194
197
195
198
@libraries_indexed = ( @libraries_indexed || success ) if library_name == WORKAROUND_LIB
196
199
success
@@ -237,7 +240,7 @@ def library_present?(library_name)
237
240
def update_library_index
238
241
# install random lib so the arduino IDE grabs a new library index
239
242
# see: https://github.com/arduino/Arduino/issues/3535
240
- install_library ( "USBHost" )
243
+ install_library ( WORKAROUND_LIB )
241
244
end
242
245
243
246
# use a particular board for compilation
@@ -319,7 +322,7 @@ def library_examples(installed_library_path)
319
322
proj_file = example_path + e + "#{ e } .ino"
320
323
proj_file . exist? ? proj_file . to_s : nil
321
324
end
322
- files . reject ( &:nil? )
325
+ files . reject ( &:nil? ) . sort_by ( & :to_s )
323
326
end
324
327
end
325
328
end
Original file line number Diff line number Diff line change @@ -109,7 +109,8 @@ def cpp_files_in(some_dir)
109
109
real = some_dir . realpath
110
110
files = Find . find ( real ) . map { |p | Pathname . new ( p ) } . reject ( &:directory? )
111
111
cpp = files . select { |path | CPP_EXTENSIONS . include? ( path . extname . downcase ) }
112
- cpp . reject { |path | path . basename . to_s . start_with? ( "." ) } # ignore hidden
112
+ not_hidden = cpp . reject { |path | path . basename . to_s . start_with? ( "." ) }
113
+ not_hidden . sort_by ( &:to_s )
113
114
end
114
115
115
116
# CPP files that are part of the project library under test
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ platforms:
98
98
gcc :
99
99
features :
100
100
defines :
101
+ - __AVR_ATmega2560__
101
102
warnings :
102
103
flags :
103
104
cplayClassic :
You can’t perform that action at this time.
0 commit comments