arduino_ci 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/exe/arduino_ci_remote.rb +15 -6
- data/lib/arduino_ci/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bc68a43b822ba3c0456a181772f22d0aabd5a3d068e4012da71a25c073b85d1
|
4
|
+
data.tar.gz: ca27e600b1c0768a5a2e69b0bde17cd6d985d3a99b9c963fc50b8d3675780e3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 990cab7ac8de31536d3287d4bad8853f3a0710d89f49511cc54176be2a6ac4e725814bde7dcd9aaa3b6ce5dff47522a6294d802f3b53dacb921c6eb8a4702c7c
|
7
|
+
data.tar.gz: d6eb5c03d83ea50cf1ee361360ede6869481f65123667604f0ef5309611c493717e706d04893a2a55786249acf509b08eeef31ff149d1c411cb4a787e59ddb52
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
# ArduinoCI Ruby gem (`arduino_ci`) [![Gem Version](https://badge.fury.io/rb/arduino_ci.svg)](https://rubygems.org/gems/arduino_ci) [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/arduino_ci/0.1.
|
2
|
+
# ArduinoCI Ruby gem (`arduino_ci`) [![Gem Version](https://badge.fury.io/rb/arduino_ci.svg)](https://rubygems.org/gems/arduino_ci) [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/arduino_ci/0.1.13)
|
3
3
|
|
4
4
|
You want your Arduino library to be automatically built and tested every time someone contributes code to your project on GitHub, but the Arduino IDE lacks the ability to run unit tests. [Arduino CI](https://github.com/ianfixes/arduino_ci) provides that ability.
|
5
5
|
|
data/exe/arduino_ci_remote.rb
CHANGED
@@ -161,7 +161,7 @@ end
|
|
161
161
|
last_board = nil
|
162
162
|
if !cpp_library.tests_dir.exist?
|
163
163
|
inform_multiline("Skipping unit tests; no tests dir at #{cpp_library.tests_dir}") do
|
164
|
-
puts cpp_library.tests_dir.find.to_a.to_s
|
164
|
+
puts cpp_library.tests_dir.parent.find.to_a.to_s
|
165
165
|
true
|
166
166
|
end
|
167
167
|
elsif cpp_library.test_files.empty?
|
@@ -207,13 +207,22 @@ if library_examples.empty?
|
|
207
207
|
else
|
208
208
|
attempt("Setting compiler warning level") { @arduino_cmd.set_pref("compiler.warning_level", "all") }
|
209
209
|
|
210
|
-
#
|
211
|
-
|
210
|
+
# switching boards takes time, so iterate board first
|
211
|
+
# _then_ whichever examples match it
|
212
|
+
examples_by_platform = library_examples.each_with_object({}) do |example_path, acc|
|
212
213
|
ovr_config = config.from_example(example_path)
|
213
214
|
ovr_config.platforms_to_build.each do |p|
|
214
|
-
|
215
|
-
|
216
|
-
|
215
|
+
acc[p] = [] unless acc.key?(p)
|
216
|
+
acc[p] << example_path
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
examples_by_platform.each do |platform, example_paths|
|
221
|
+
board = all_platforms[platform][:board]
|
222
|
+
assure("Switching to board for #{platform} (#{board})") { @arduino_cmd.use_board(board) } unless last_board == board
|
223
|
+
last_board = board
|
224
|
+
|
225
|
+
example_paths.each do |example_path|
|
217
226
|
example_name = File.basename(example_path)
|
218
227
|
attempt("Verifying #{example_name}") do
|
219
228
|
ret = @arduino_cmd.verify_sketch(example_path)
|
data/lib/arduino_ci/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arduino_ci
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian Katz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: os
|