mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-12 07:19:08 +08:00
add more tests in matrix
This commit is contained in:
parent
e18eb686fb
commit
7471746ad7
10
.travis.yml
10
.travis.yml
@ -18,9 +18,11 @@ install:
|
||||
- pip install -U platformio
|
||||
|
||||
env:
|
||||
- TARGET=esp32 PLATFORM=arduino
|
||||
- TARGET=esp8266 PLATFORM=arduino
|
||||
- TARGET=all PLATFORM=PIO
|
||||
- TARGET=esp32 PLATFORM=arduino BT=yes AUTHENTICATION=yes
|
||||
- TARGET=esp32 PLATFORM=arduino BT=yes AUTHENTICATION=no
|
||||
- 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:
|
||||
- platformio update
|
||||
@ -49,7 +51,7 @@ before_script:
|
||||
- export PATH="$HOME/arduino_ide:$PATH"
|
||||
|
||||
script:
|
||||
- build_sketch $TRAVIS_BUILD_DIR/esp3d/esp3d.ino $TARGET $PLATFORM
|
||||
- build_sketch $TRAVIS_BUILD_DIR/esp3d/esp3d.ino $TARGET $PLATFORM $BT $AUTHENTICATION
|
||||
|
||||
notifications:
|
||||
email:
|
||||
|
13
command.sh
13
command.sh
@ -5,9 +5,22 @@ function build_sketch()
|
||||
local sketch=$1
|
||||
local target=$2
|
||||
local ide=$3
|
||||
local bt=$4
|
||||
local auth=$5
|
||||
if [[ "$3" == "arduino" ]];
|
||||
then
|
||||
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" ]];
|
||||
then
|
||||
echo "setup for esp32"
|
||||
|
Loading…
x
Reference in New Issue
Block a user