8000 Add files needed to compile Ethernet library by jgfoster · Pull Request #180 · Arduino-CI/arduino_ci · GitHub
[go: up one dir, main page]

Skip to content

Add files needed to compile Ethernet library #180

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

Closed
wants to merge 12 commits into from
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()
0