2018-09-21 15:57:19 -05:00
|
|
|
sudo: false
|
|
|
|
|
|
|
|
language: bash
|
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- "export DISPLAY=:99.0"
|
|
|
|
- sleep 3 # give xvfb some time to start
|
|
|
|
- wget http://downloads.arduino.cc/arduino-1.8.5-linux64.tar.xz
|
|
|
|
- tar xf arduino-1.8.5-linux64.tar.xz
|
|
|
|
- mv arduino-1.8.5 $HOME/arduino_ide
|
|
|
|
- cd $HOME/arduino_ide/hardware
|
|
|
|
- mkdir esp32
|
|
|
|
- cd esp32
|
|
|
|
- git clone https://github.com/espressif/arduino-esp32.git esp32
|
|
|
|
- cd esp32/tools
|
|
|
|
- python get.py
|
|
|
|
- cd ..
|
2018-11-10 15:33:04 -06:00
|
|
|
- mv $TRAVIS_BUILD_DIR/libraries/ESP32SSDP $HOME/arduino_ide/libraries/
|
|
|
|
- mv $TRAVIS_BUILD_DIR/libraries/arduinoWebSockets $HOME/arduino_ide/libraries/
|
2018-09-21 15:57:19 -05:00
|
|
|
|
|
|
|
script:
|
|
|
|
- cd $TRAVIS_BUILD_DIR
|
|
|
|
- source command.sh
|
|
|
|
- export PATH="$HOME/arduino_ide:$PATH"
|
2019-05-06 14:31:15 +09:00
|
|
|
- arduino --board esp32:esp32:esp32:PartitionScheme=min_spiffs,FlashFreq=40 --pref compiler.warning_level=all --save-prefs
|
2018-11-10 15:33:04 -06:00
|
|
|
- sed -n '48,72p;73q' $TRAVIS_BUILD_DIR/Grbl_Esp32/config.h
|
|
|
|
- sed -i "s/\/\/#define ENABLE_BLUETOOTH/#define ENABLE_BLUETOOTH/g" $TRAVIS_BUILD_DIR/Grbl_Esp32/config.h
|
|
|
|
- sed -i "s/#define ENABLE_BLUETOOTH/\/\/#define ENABLE_BLUETOOTH/g" $TRAVIS_BUILD_DIR/Grbl_Esp32/config.h
|
|
|
|
- sed -i "s/\/\/#define ENABLE_WIFI/#define ENABLE_WIFI/g" $TRAVIS_BUILD_DIR/Grbl_Esp32/config.h
|
|
|
|
- sed -n '48,72p;73q' $TRAVIS_BUILD_DIR/Grbl_Esp32/config.h
|
|
|
|
- build_sketch $TRAVIS_BUILD_DIR/Grbl_Esp32/Grbl_Esp32.ino
|
|
|
|
- sed -i "s/\/\/#define ENABLE_BLUETOOTH/#define ENABLE_BLUETOOTH/g" $TRAVIS_BUILD_DIR/Grbl_Esp32/config.h
|
|
|
|
- sed -i "s/#define ENABLE_WIFI/\/\/#define ENABLE_WIFI/g" $TRAVIS_BUILD_DIR/Grbl_Esp32/config.h
|
|
|
|
- sed -n '48,72p;73q' $TRAVIS_BUILD_DIR/Grbl_Esp32/config.h
|
2018-09-21 15:57:19 -05:00
|
|
|
- build_sketch $TRAVIS_BUILD_DIR/Grbl_Esp32/Grbl_Esp32.ino
|
2019-05-06 10:08:29 +09:00
|
|
|
- sed -i "s/\/\/#define ENABLE_BLUETOOTH/#define ENABLE_BLUETOOTH/g" $TRAVIS_BUILD_DIR/Grbl_Esp32/config.h
|
|
|
|
- sed -i "s/\/\/#define ENABLE_WIFI/#define ENABLE_WIFI/g" $TRAVIS_BUILD_DIR/Grbl_Esp32/config.h
|
|
|
|
- sed -n '48,72p;73q' $TRAVIS_BUILD_DIR/Grbl_Esp32/config.h
|
|
|
|
- build_sketch $TRAVIS_BUILD_DIR/Grbl_Esp32/Grbl_Esp32.ino
|
|
|
|
|
2018-09-21 15:57:19 -05:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: change
|
|
|
|
on_failure: change
|