Travis CI Support #31
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds Travis CI support. Whenever a new commit is pushed (either by me or from a pull request), Travis will test its validity by building all of the library examples in a virtual instance.
Currently tested boards:
These are the two boards the library was designed around, and all examples are compiled for both boards (sans the dual I²C bus one). In the future it might be wise to also unit test other boards like the Leonardo or the ESP8266, but for now this will suffice. (Don't want to needlessly tax Travis CI's free service, either.)
Currently Travis is configured to download Arduino 1.8.1 and Teensyduino 1.44. I'm using a slightly older version of the Arduino IDE because more recent ones (>1.8.1, e.g. 1.8.6 or 1.8.7) apparently have issues with SocketListener warnings that pollute the build log (see per1234/arduino-ci-script#1). For now this seems to work fine; if this issue gets fixed or I start running into compatibility issues I'll bump the version.