mirror of
https://github.com/Links2004/arduinoWebSockets.git
synced 2025-07-29 23:27:13 +02:00
use travis matrix
This commit is contained in:
34
.travis.yml
34
.travis.yml
@ -2,38 +2,30 @@ sudo: false
|
|||||||
language: bash
|
language: bash
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
- IDE_VERSION=1.6.5
|
||||||
|
matrix:
|
||||||
|
CPU="esp8266" BOARD="esp8266com:esp8266:generic"
|
||||||
|
CPU="esp32" BOARD="espressif:esp32:esp32:FlashFreq=80"
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16
|
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16
|
||||||
- sleep 3
|
- sleep 3
|
||||||
- export DISPLAY=:1.0
|
- export DISPLAY=:1.0
|
||||||
- wget http://downloads.arduino.cc/arduino-1.6.5-linux64.tar.xz
|
- wget http://downloads.arduino.cc/arduino-$IDE_VERSION-linux64.tar.xz
|
||||||
- tar xf arduino-1.6.5-linux64.tar.xz
|
- tar xf arduino-$IDE_VERSION-linux64.tar.xz
|
||||||
- mv arduino-1.6.5 $HOME/arduino_ide
|
- mv arduino-$IDE_VERSION $HOME/arduino_ide
|
||||||
- export PATH="$HOME/arduino_ide:$PATH"
|
- export PATH="$HOME/arduino_ide:$PATH"
|
||||||
- which arduino
|
- which arduino
|
||||||
- mkdir -p $HOME/Arduino/libraries
|
- mkdir -p $HOME/Arduino/libraries
|
||||||
- cp -r $TRAVIS_BUILD_DIR $HOME/Arduino/libraries/arduinoWebSockets
|
- cp -r $TRAVIS_BUILD_DIR $HOME/Arduino/libraries/arduinoWebSockets
|
||||||
- cd $HOME/arduino_ide/hardware
|
|
||||||
- mkdir esp8266com
|
|
||||||
- cd esp8266com
|
|
||||||
- git clone https://github.com/esp8266/Arduino.git esp8266
|
|
||||||
- cd esp8266/tools
|
|
||||||
- python get.py
|
|
||||||
- cd $HOME/arduino_ide/hardware
|
|
||||||
- mkdir espressif
|
|
||||||
- cd espressif
|
|
||||||
- git clone https://github.com/espressif/arduino-esp32.git esp32
|
|
||||||
- cd esp32/tools
|
|
||||||
- python get.py
|
|
||||||
- cd $TRAVIS_BUILD_DIR
|
|
||||||
- source $TRAVIS_BUILD_DIR/travis/common.sh
|
- source $TRAVIS_BUILD_DIR/travis/common.sh
|
||||||
- arduino --board esp8266com:esp8266:generic --save-prefs
|
- get_core $CPU
|
||||||
|
- cd $TRAVIS_BUILD_DIR
|
||||||
|
- arduino --board $BOARD --save-prefs
|
||||||
- arduino --get-pref sketchbook.path
|
- arduino --get-pref sketchbook.path
|
||||||
- build_sketches arduino $HOME/Arduino/libraries/arduinoWebSockets esp8266
|
- build_sketches arduino $HOME/Arduino/libraries/arduinoWebSockets $CPU
|
||||||
- arduino --board espressif:esp32:esp32:FlashFreq=80 --save-prefs
|
|
||||||
- arduino --get-pref sketchbook.path
|
|
||||||
- build_sketches arduino $HOME/Arduino/libraries/arduinoWebSockets esp32
|
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
|
@ -22,3 +22,25 @@ function build_sketches()
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function get_core()
|
||||||
|
{
|
||||||
|
cd $HOME/arduino_ide/hardware
|
||||||
|
|
||||||
|
if [ "$1" = "esp8266" ] ; then
|
||||||
|
mkdir esp8266com
|
||||||
|
cd esp8266com
|
||||||
|
git clone https://github.com/esp8266/Arduino.git esp8266
|
||||||
|
cd esp8266/tools
|
||||||
|
python get.py
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$1" = "esp32" ] ; then
|
||||||
|
mkdir espressif
|
||||||
|
cd espressif
|
||||||
|
git clone https://github.com/espressif/arduino-esp32.git esp32
|
||||||
|
cd esp32/tools
|
||||||
|
python get.py
|
||||||
|
fi
|
||||||
|
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user