-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed unecessery #define and added travis config files for building…
… examples as tests
- Loading branch information
Showing
3 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
language: generic | ||
env: | ||
global: | ||
- CLI_VERSION=latest | ||
before_install: | ||
- wget http://downloads.arduino.cc/arduino-cli/arduino-cli-$CLI_VERSION-linux64.tar.bz2 | ||
- tar xf arduino-cli-$CLI_VERSION-linux64.tar.bz2 | ||
- mv arduino-cli-*-linux64 $HOME/bin/arduino-cli | ||
- mkdir -p $HOME/bin | ||
- arduino-cli config init | ||
- mv $PWD/travis/.cli-config.yml $HOME/bin/.cli-config.yml | ||
- arduino-cli config dump | ||
- export PATH=$PATH:$HOME/bin | ||
- arduino-cli core update-index | ||
- arduino-cli core install arduino:avr | ||
- arduino-cli core install esp8266:esp8266 | ||
- arduino-cli core install esp32:esp32 | ||
- arduino-cli lib install [email protected] | ||
- buildExampleSketchEsp8266() { arduino-cli compile --warnings all --fqbn esp8266:esp8266:generic $PWD/examples/$1; } | ||
- buildExampleSketchEsp32() { arduino-cli compile --warnings all --fqbn esp32:esp32:esp32 $PWD/examples/$1; } | ||
install: | ||
- mkdir -p $HOME/Arduino/libraries | ||
- ln -s $PWD $HOME/Arduino/libraries/. | ||
script: | ||
- buildExampleSketchEsp32 "Esp32-Client" | ||
- buildExampleSketchEsp8266 "Esp8266-Client" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#pragma once | ||
|
||
#define ESP32 | ||
#ifdef ESP32 | ||
|
||
#include "ws_common.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
proxy_type: auto | ||
sketchbook_path: /home/travis/Arduino | ||
arduino_data: /home/travis/.arduino15 | ||
board_manager: null | ||
board_manager: | ||
additional_urls: | ||
- http://arduino.esp8266.com/stable/package_esp8266com_index.json | ||
- https://dl.espressif.com/dl/package_esp32_index.json |