Skip to content
Prev Previous commit
Next Next commit
Now able to compile Ethernet library.
  • Loading branch information
James Foster committed Nov 6, 2020
commit 42d49e6993c547c648d7d921ec36eaa9554c0c85
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Added
- Add `__AVR__` to defines when compiling
- Add support for `diditalPinToPort()`, `digitalPinToBitMask()`, and `portOutputRegister()`
- Add stubs for `Client.h`, `IPAddress.h`, `Printable.h`, `Server.h`, and `Udp.h`

### Changed
- Move repository from https://github.com/ianfixes/arduino_ci to https://github.com/Arduino-CI/arduino_ci
Expand Down
8 changes: 4 additions & 4 deletions SampleProjects/NetworkLib/.arduino-ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
unittest:
platforms:
- mega2560
# libraries:
# - "Ethernet"
libraries:
- "Ethernet"

compile:
platforms:
- mega2560
# libraries:
# - "Ethernet"
libraries:
- "Ethernet"
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include <NetworkLib.h>
// if it seems bare, that's because it's only meant to
// demonstrate compilation -- that references work
void setup() {}

void loop() {}
9 changes: 4 additions & 5 deletions SampleProjects/NetworkLib/test/test.cpp
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
/*
cd SampleProjects/Ethernet
cd SampleProjects/NetworkLib
bundle config --local path vendor/bundle
bundle install
bundle exec arduino_ci_remote.rb --skip-compilation
# bundle exec arduino_ci_remote.rb --skip-examples-compilation
*/

#include <ArduinoUnitTests.h>
#include <Arduino.h>
#include <ArduinoUnitTests.h>
#include <Ethernet.h>

unittest(test) {
assertTrue(true);
}
unittest(test) { assertEqual(EthernetNoHardware, Ethernet.hardwareStatus()); }

unittest_main()