Skip to content

expose DESIRED_ARDUINO_CLI_VERSION #228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Symlink tests for `Host`
- Add documentation on how to use Arduino CI with GitHub Actions
- Allow tests to run on GitHub without external set up, via GitHub Actions (Windows, Linux, MacOS)
- Exposed desired CLI backend version as `ArduinoInstallation::DESIRED_ARDUINO_CLI_VERSION`

### Changed
- Arduino backend is now `arduino-cli` version `0.13.0`
Expand Down
4 changes: 2 additions & 2 deletions lib/arduino_ci/arduino_installation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
require "arduino_ci/arduino_downloader_linux"
require "arduino_ci/arduino_downloader_windows" if ArduinoCI::Host.os == :windows

DESIRED_ARDUINO_CLI_VERSION = "0.13.0".freeze

module ArduinoCI

class ArduinoInstallationError < StandardError; end

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

DESIRED_ARDUINO_CLI_VERSION = "0.13.0".freeze

class << self

# attempt to find a workable Arduino executable across platforms
Expand Down
6 changes: 6 additions & 0 deletions spec/arduino_installation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
RSpec.describe ArduinoCI::ArduinoInstallation do
next if skip_ruby_tests

context "constants" do
it "Exposes desired backend version" do
expect(ArduinoCI::ArduinoInstallation::DESIRED_ARDUINO_CLI_VERSION).to eq("0.13.0")
end
end

context "autolocate" do
it "doesn't fail" do
ArduinoCI::ArduinoInstallation.autolocate
Expand Down