Skip to content

Commit 8ef2fc8

Browse files
author
James Foster
authored
Add Client, Server, and other libraries needed to compile Ethernet (#8)
1 parent d5d6af7 commit 8ef2fc8

File tree

22 files changed

+300
-13
lines changed

22 files changed

+300
-13
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,10 @@ script:
2626
- bundle exec rspec --backtrace
2727
- cd SampleProjects/TestSomething
2828
- bundle install
29+
- bundle exec arduino_ci_remote.rb
30+
- cd ../NetworkLib
31+
- bundle install
32+
- cd scripts
33+
- bash -x ./install.sh
34+
- cd ..
2935
- bundle exec arduino_ci.rb

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
88
## [Unreleased]
99
### Added
1010
- Add `__AVR__` to defines when compiling
11+
- Add stubs for `Client.h`, `IPAddress.h`, `Printable.h`, `Server.h`, and `Udp.h`
1112
- Add support for `digitalPinToPort()`, `digitalPinToBitMask()`, and `portOutputRegister()`
1213
- Support for mock EEPROM (but only if board supports it)
1314

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
unittest:
2+
platforms:
3+
- mega2560
4+
libraries:
5+
- "Ethernet"
6+
7+
compile:
8+
platforms:
9+
- mega2560
10+
libraries:
11+
- "Ethernet"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.bundle

SampleProjects/NetworkLib/Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
source 'https://rubygems.org'
2+
gem 'arduino_ci', path: '../../'
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# NetworkLib
2+
3+
This is an example of a library that depends on Ethernet.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include <NetworkLib.h>
2+
// if it seems bare, that's because it's only meant to
3+
// demonstrate compilation -- that references work
4+
void setup() {}
5+
6+
void loop() {}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name=Ethernet
2+
version=0.1.0
3+
author=James Foster <arduino@jgfoster.net>
4+
maintainer=James Foster <arduino@jgfoster.net>
5+
sentence=Sample Ethernet library to validate Client/Server mocks
6+
paragraph=Sample Ethernet library to validate Client/Server mocks
7+
category=Other
8+
url=https://github.com/Arduino-CI/arduino_ci/SampleProjects/Ethernet
9+
architectures=avr,esp8266
10+
includes=NetworkLib.h
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
# if we don't have an Ethernet library, then get the standard one
4+
cd $(bundle exec arduino_library_location.rb)
5+
if [ ! -d ./Ethernet ] ; then
6+
git clone https://github.com/arduino-libraries/Ethernet.git
7+
fi
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "Ethernet.h"

0 commit comments

Comments
 (0)