add more tests in matrix

This commit is contained in:
Luc 2019-07-31 11:46:12 +02:00
parent e18eb686fb
commit 7471746ad7
2 changed files with 19 additions and 4 deletions

View File

@ -18,9 +18,11 @@ install:
- pip install -U platformio - pip install -U platformio
env: env:
- TARGET=esp32 PLATFORM=arduino - TARGET=esp32 PLATFORM=arduino BT=yes AUTHENTICATION=yes
- TARGET=esp8266 PLATFORM=arduino - TARGET=esp32 PLATFORM=arduino BT=yes AUTHENTICATION=no
- TARGET=all PLATFORM=PIO - TARGET=esp8266 PLATFORM=arduino BT=no AUTHENTICATION=yes
- TARGET=esp8266 PLATFORM=arduino BT=no AUTHENTICATION=no
- TARGET=all PLATFORM=PIO BT=yes AUTHENTICATION=yes
before_script: before_script:
- platformio update - platformio update
@ -49,7 +51,7 @@ before_script:
- export PATH="$HOME/arduino_ide:$PATH" - export PATH="$HOME/arduino_ide:$PATH"
script: script:
- build_sketch $TRAVIS_BUILD_DIR/esp3d/esp3d.ino $TARGET $PLATFORM - build_sketch $TRAVIS_BUILD_DIR/esp3d/esp3d.ino $TARGET $PLATFORM $BT $AUTHENTICATION
notifications: notifications:
email: email:

View File

@ -5,9 +5,22 @@ function build_sketch()
local sketch=$1 local sketch=$1
local target=$2 local target=$2
local ide=$3 local ide=$3
local bt=$4
local auth=$5
if [[ "$3" == "arduino" ]]; if [[ "$3" == "arduino" ]];
then then
rm -f $HOME/.arduino15/preferences.txt rm -f $HOME/.arduino15/preferences.txt
#be sure everything is enabled by default as reference
sed -i "s/\/\/#define AUTHENTICATION_FEATURE /#define AUTHENTICATION_FEATURE/g" $TRAVIS_BUILD_DIR/esp3d/configuration.h
sed -i "s/\/\/#define BLUETOOTH_FEATURE /#define AUTHENTICATION_FEATURE/g" $TRAVIS_BUILD_DIR/esp3d/configuration.h
if [[ "$4" == "no" ]];
then
sed -i "s/#define AUTHENTICATION_FEATURE /\/\/#define AUTHENTICATION_FEATURE/g" $TRAVIS_BUILD_DIR/esp3d/configuration.h
fi
if [[ "$5" == "no" ]];
then
sed -i "s/#define BLUETOOTH_FEATURE /\/\/#define BLUETOOTH_FEATURE/g" $TRAVIS_BUILD_DIR/esp3d/configuration.h
fi
if [[ "$2" == "esp32" ]]; if [[ "$2" == "esp32" ]];
then then
echo "setup for esp32" echo "setup for esp32"