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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
- SCRIPT=platformioSingle EXAMPLE_NAME=ReplyKeyboardMarkup EXAMPLE_FOLDER=/CustomKeyboard/ BOARDTYPE=ESP8266 BOARD=d1_mini
- SCRIPT=platformioSingle EXAMPLE_NAME=InlineKeyboardMarkup EXAMPLE_FOLDER=/CustomKeyboard/ BOARDTYPE=ESP8266 BOARD=d1_mini
- SCRIPT=platformioSingle EXAMPLE_NAME=FlashLED EXAMPLE_FOLDER=/ BOARDTYPE=ESP8266 BOARD=d1_mini
- SCRIPT=platformioSingle EXAMPLE_NAME=UsingWiFiManager EXAMPLE_FOLDER=/ BOARDTYPE=ESP8266 BOARD=d1_mini
- SCRIPT=platformioSingle EXAMPLE_NAME=UsingWiFiManager EXAMPLE_FOLDER=/ BOARDTYPE=ESP8266 BOARD=d1_mini LIBRARYDEPENDENCY=567
- SCRIPT=platformioSingle EXAMPLE_NAME=BulkMessages EXAMPLE_FOLDER=/ BOARDTYPE=ESP8266 BOARD=d1_mini
- SCRIPT=platformioSingle EXAMPLE_NAME=PhotoFromSD EXAMPLE_FOLDER=/SendPhoto/ BOARDTYPE=ESP8266 BOARD=d1_mini
- SCRIPT=platformioSingle EXAMPLE_NAME=PhotoFromURL EXAMPLE_FOLDER=/SendPhoto/ BOARDTYPE=ESP8266 BOARD=d1_mini
Expand All @@ -33,6 +33,14 @@ env:
- SCRIPT=platformioSingle EXAMPLE_NAME=ChatAction EXAMPLE_FOLDER=/ BOARDTYPE=ESP32 BOARD=esp32dev
- SCRIPT=platformioSingle EXAMPLE_NAME=LongPoll EXAMPLE_FOLDER=/ BOARDTYPE=ESP32 BOARD=esp32dev

- SCRIPT=platformioSingle EXAMPLE_NAME=CustomKeyboard EXAMPLE_FOLDER=/ BOARDTYPE=101 BOARD=mkr1000USB LIBRARYDEPENDENCY=299
- SCRIPT=platformioSingle EXAMPLE_NAME=EchoBot EXAMPLE_FOLDER=/ BOARDTYPE=101 BOARD=mkr1000USB LIBRARYDEPENDENCY=299
- SCRIPT=platformioSingle EXAMPLE_NAME=FlashledBot EXAMPLE_FOLDER=/ BOARDTYPE=101 BOARD=mkr1000USB LIBRARYDEPENDENCY=299

- SCRIPT=platformioSingle EXAMPLE_NAME=CustomKeyboard EXAMPLE_FOLDER=/ BOARDTYPE=101 BOARD=megaatmega2560 LIBRARYDEPENDENCY=299
- SCRIPT=platformioSingle EXAMPLE_NAME=EchoBot EXAMPLE_FOLDER=/ BOARDTYPE=101 BOARD=megaatmega2560 LIBRARYDEPENDENCY=299
- SCRIPT=platformioSingle EXAMPLE_NAME=FlashledBot EXAMPLE_FOLDER=/ BOARDTYPE=101 BOARD=megaatmega2560 LIBRARYDEPENDENCY=299


install:
- pip install -U platformio
Expand All @@ -41,6 +49,6 @@ install:
#
# http://platformio.org/lib/show/64/ArduinoJson
- platformio lib -g install 64
# http://platformio.org/lib/show/567/WifiManager
- platformio lib -g install 567
# Install sketch-specific library dependency
- if [[ "$LIBRARYDEPENDENCY" != "" ]]; then platformio lib -g install "$LIBRARYDEPENDENCY"; fi
script: scripts/travis/$SCRIPT.sh
1 change: 1 addition & 0 deletions examples/101/CustomKeyboard/CustomKeyboard.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* written by Brian Lough *
*******************************************************************/

#include <SPI.h>
#include <WiFiSSLClient.h>
#include <WiFi101.h>
#include <UniversalTelegramBot.h>
Expand Down
1 change: 1 addition & 0 deletions examples/101/EchoBot/EchoBot.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*******************************************************************/


#include <SPI.h>
#include <WiFiSSLClient.h>
#include <WiFi101.h>
#include <UniversalTelegramBot.h>
Expand Down
1 change: 1 addition & 0 deletions examples/101/FlashledBot/FlashledBot.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* adapted by Brian Lough *
*******************************************************************/

#include <SPI.h>
#include <WiFiSSLClient.h>
#include <WiFi101.h>
#include <UniversalTelegramBot.h>
Expand Down
12 changes: 12 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,15 @@ platform = espressif32_stage
board = esp32dev
framework = arduino
lib_deps = ${common.lib_deps_external}

[env:mkr1000USB]
platform = atmelsam
board = mkr1000USB
framework = arduino
lib_deps = WiFi101, ${common.lib_deps_external}

[env:megaatmega2560]
platform = atmelavr
board = megaatmega2560
framework = arduino
lib_deps = WiFi101, ${common.lib_deps_external}