Skip to content

Commit 2d000e4

Browse files
authored
Merge pull request #228 from ianfixes/2020-11-29_desired_version
expose DESIRED_ARDUINO_CLI_VERSION
2 parents a521141 + d53003e commit 2d000e4

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1414
- Symlink tests for `Host`
1515
- Add documentation on how to use Arduino CI with GitHub Actions
1616
- Allow tests to run on GitHub without external set up, via GitHub Actions (Windows, Linux, MacOS)
17+
- Exposed desired CLI backend version as `ArduinoInstallation::DESIRED_ARDUINO_CLI_VERSION`
1718

1819
### Changed
1920
- Arduino backend is now `arduino-cli` version `0.13.0`

lib/arduino_ci/arduino_installation.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
require "arduino_ci/arduino_downloader_linux"
66
require "arduino_ci/arduino_downloader_windows" if ArduinoCI::Host.os == :windows
77

8-
DESIRED_ARDUINO_CLI_VERSION = "0.13.0".freeze
9-
108
module ArduinoCI
119

1210
class ArduinoInstallationError < StandardError; end
1311

1412
# Manage the OS-specific install location of Arduino
1513
class ArduinoInstallation
1614

15+
DESIRED_ARDUINO_CLI_VERSION = "0.13.0".freeze
16+
1717
class << self
1818

1919
# attempt to find a workable Arduino executable across platforms

spec/arduino_installation_spec.rb

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
RSpec.describe ArduinoCI::ArduinoInstallation do
44
next if skip_ruby_tests
55

6+
context "constants" do
7+
it "Exposes desired backend version" do
8+
expect(ArduinoCI::ArduinoInstallation::DESIRED_ARDUINO_CLI_VERSION).to eq("0.13.0")
9+
end
10+
end
11+
612
context "autolocate" do
713
it "doesn't fail" do
814
ArduinoCI::ArduinoInstallation.autolocate

0 commit comments

Comments
 (0)