Skip to content

Commit c9bcc7b

Browse files
James Fosterianfixes
authored andcommitted
Add files needed to compile Ethernet library (squashed)
1 parent 7978af6 commit c9bcc7b

File tree

21 files changed

+295
-12
lines changed

21 files changed

+295
-12
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,9 @@ script:
2727
- cd SampleProjects/TestSomething
2828
- bundle install
2929
- bundle exec arduino_ci.rb
30+
- cd ../NetworkLib
31+
- bundle install
32+
- cd scripts
33+
- bash -x ./install.sh
34+
- cd ..
35+
- bundle exec arduino_ci.rb

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1616
- `CppLibrary.print_stack_dump` prints stack trace dumps (on Windows specifically) to the console if encountered
1717
- Definitions for Arduino zero
1818
- Support for mock EEPROM (but only if board supports it)
19+
- Add stubs for `Client.h`, `IPAddress.h`, `Printable.h`, `Server.h`, and `Udp.h`
1920

2021
### Changed
2122
- Move repository from https://github.com/ianfixes/arduino_ci to https://github.com/Arduino-CI/arduino_ci
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"

SampleProjects/NetworkLib/.gitignore

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: '../../'

SampleProjects/NetworkLib/README.md

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 <[email protected]>
4+
maintainer=James Foster <[email protected]>
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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
# if we don't have an Ethernet library already (say, in new install or for an automated test),
4+
# then get the custom one we want to use for testing
5+
cd $(bundle exec arduino_library_location.rb)
6+
if [ ! -d ./Ethernet ] ; then
7+
git clone https://github.com/arduino-libraries/Ethernet.git
8+
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)