Skip to content
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

Use Travis CI to test the 101 example sketches #69

Closed
wants to merge 3 commits into from
Closed

Use Travis CI to test the 101 example sketches #69

wants to merge 3 commits into from

Conversation

per1234
Copy link

@per1234 per1234 commented Feb 3, 2018

Run Travis CI jobs that compile each example sketch under examples/101 for MKR1000 and Mega 2560. The MKR1000 has onboard support for the WiFi101 library and the Mega 2560 is the recommended AVR board for use with the WiFi 101 shield.

I was quite frustrated that, no matter what I tried, compiling any sketch that included the WiFi101 library would fail:

/home/travis/.platformio/lib/WiFi101_ID299/src/bus_wrapper/source/nm_bus_wrapper_samd21.cpp:46:17: fatal error: SPI.h: No such file or directory

even though the same sketches compiled fine with the Arduino IDE. So I finally resorted to adding #include <SPI.h> to each of the 101 example sketches, which solved the problem. This is my first time working with platformio so maybe there is a way to avoid this.

Note that the FlashledBot jobs fail but this is the expected behavior as there is a bug in that sketch that will be fixed in my next PR.

Fixes #20

per1234 added 3 commits April 23, 2018 22:22
Although the Arduino IDE will happily compile these sketches without this line, platformio will not, even after adding lib_ldf_mode = deep+ to platformio.ini.
In addition to making the build more efficient, this will become necessary when adding additional targets to the Travis CI build as the unnecessarily installed WiFiManager conflicts with the WiFi101 library dependency.
Compile the 101 example sketches for the MKR1000 and Mega 2560 boards. The MKR1000 has onboard support for the WiFi101 library and the Mega 2560 is the recommended AVR board for use with the WiFi 101 shield.
@per1234
Copy link
Author

per1234 commented Apr 24, 2018

Now that the unrelated issue reported in #70 has been resolved by 70a393e, I rebased this pull request to demonstrate that it results in a successful Travis CI build.

@witnessmenow please let me know if there's anything I need to do to get this merged.

@witnessmenow
Copy link
Owner

Sorry @per1234 , this is on me, but this is stale now for lots of reasons!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Travis is not compiling the Arduino 101 examples
2 participants