Skip to content

Commit a79a895

Browse files
committed
update to arduino 1.8.5
1 parent 4e16822 commit a79a895

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

exe/ci_system_check.rb

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242

4343
simple_sketch = File.join(File.dirname(__FILE__), "spec", "FakeSketch", "FakeSketch.ino")
4444

45+
puts "switch back to arduino uno"
46+
got_problem = true unless arduino_cmd.use_board("arduino:avr:uno")
47+
4548
puts "verify a simple sketch"
4649
got_problem = true unless arduino_cmd.verify_sketch(simple_sketch)
4750

lib/arduino_ci/arduino_installation.rb

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
require "arduino_ci/host"
22

3+
DESIRED_ARDUINO_IDE_VERSION = "1.8.5".freeze
4+
35
module ArduinoCI
46

57
# Manage the OS-specific install location of Arduino
@@ -55,9 +57,11 @@ def autolocate!
5557
end
5658

5759
def force_install
58-
system("wget", "https://downloads.arduino.cc/arduino-1.6.5-linux64.tar.xz")
59-
system("tar", "xf", "arduino-1.6.5-linux64.tar.xz")
60-
system("mv", "arduino-1.6.5", force_install_location)
60+
pkgname = "arduino-#{DESIRED_ARDUINO_IDE_VERSION}"
61+
tarfile = "#{pkgname}-linux64.tar.xz"
62+
system("wget", "https://downloads.arduino.cc/#{tarfile}")
63+
system("tar", "xf", tarfile)
64+
system("mv", pkgname, force_install_location)
6165
end
6266

6367
end

spec/arduino_cmd_spec.rb

+5
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ def get_sketch(dir, file)
5959

6060
it "Passes a simple INO sketch at #{sketch_path_ino}" do
6161
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
6264
end
6365

6466
it "Rejects a PDE sketch at #{sketch_path_pde}" do
@@ -71,6 +73,9 @@ def get_sketch(dir, file)
7173

7274
it "Fails a bad sketch at #{sketch_path_bad}" do
7375
expect(arduino_cmd.verify_sketch(sketch_path_bad)).to be false
76+
# try twice in a row
77+
expect(arduino_cmd.verify_sketch(sketch_path_ino)).to be true
7478
end
79+
7580
end
7681
end

0 commit comments

Comments
 (0)