Skip to content

Commit d798161

Browse files
committed
try a different board to pass CI
1 parent 2f67cad commit d798161

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

exe/ci_system_check.rb

+8-4
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,16 @@
3333
got_problem = true unless arduino_cmd.install_library("USBHost")
3434
puts "checking that library is indexed"
3535
got_problem = true unless arduino_cmd.library_is_indexed
36-
puts "setting compiler warning level"
37-
got_problem = true unless arduino_cmd.set_pref("compiler.warning_level", "all")
36+
37+
my_board = "arduino:sam:arduino_due_x"
38+
3839
puts "use board! (install board)"
39-
got_problem = true unless arduino_cmd.use_board!("arduino:samd:zero")
40+
got_problem = true unless arduino_cmd.use_board!(my_board)
4041
puts "assert that board has been installed"
41-
got_problem = true unless arduino_cmd.board_installed?("arduino:samd:zero")
42+
got_problem = true unless arduino_cmd.board_installed?(my_board)
43+
44+
puts "setting compiler warning level"
45+
got_problem = true unless arduino_cmd.set_pref("compiler.warning_level", "all")
4246

4347
simple_sketch = File.join(File.dirname(File.dirname(__FILE__)), "spec", "FakeSketch", "FakeSketch.ino")
4448

spec/arduino_cmd_spec.rb

+5-6
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,6 @@ def get_sketch(dir, file)
5757
sketch_path_mia = get_sketch("NO_FILE_HERE", "foo.ino")
5858
sketch_path_bad = get_sketch("BadSketch", "BadSketch.ino")
5959

60-
it "Passes a simple INO sketch at #{sketch_path_ino}" do
61-
expect(arduino_cmd.verify_sketch(sketch_path_ino)).to be true
62-
# try twice in a row
63-
expect(arduino_cmd.verify_sketch(sketch_path_ino)).to be true
64-
end
65-
6660
it "Rejects a PDE sketch at #{sketch_path_pde}" do
6761
expect(arduino_cmd.verify_sketch(sketch_path_pde)).to be false
6862
end
@@ -74,5 +68,10 @@ def get_sketch(dir, file)
7468
it "Fails a bad sketch at #{sketch_path_bad}" do
7569
expect(arduino_cmd.verify_sketch(sketch_path_bad)).to be false
7670
end
71+
72+
it "Passes a simple INO sketch at #{sketch_path_ino}" do
73+
expect(arduino_cmd.verify_sketch(sketch_path_ino)).to be true
74+
end
75+
7776
end
7877
end

0 commit comments

Comments
 (0)