some things would not have worked

This commit is contained in:
Me No Dev 2016-02-01 18:07:24 +02:00
parent 2b5d77bbef
commit 50048babc2
2 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ script:
- cd $HOME/arduino_ide/hardware
- mkdir esp8266com
- cd esp8266com
- ln -s $TRAVIS_BUILD_DIR esp8266
- git clone https://github.com/esp8266/Arduino.git esp8266
- cd esp8266/tools
- python get.py
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16
@ -23,7 +23,8 @@ script:
- arduino --board esp8266com:esp8266:generic --save-prefs
- arduino --get-pref sketchbook.path
- install_libraries
- build_sketches arduino $TRAVIS_BUILD_DIR
- cp -r $TRAVIS_BUILD_DIR $HOME/Arduino/libraries/ESPAsyncWebServer
- build_sketches arduino $HOME/Arduino/libraries/ESPAsyncWebServer
notifications:
email:

View File

@ -3,7 +3,7 @@
function build_sketches()
{
local arduino=$1
local srcpath=$HOME/Arduino/libraries/ESPAsyncWebServer/examples
local srcpath=$2
local sketches=$(find $srcpath -name *.ino)
for sketch in $sketches; do
local sketchdir=$(dirname $sketch)
@ -29,7 +29,6 @@ function install_libraries()
# install ArduinoJson library
git clone https://github.com/bblanchon/ArduinoJson
git clone https://github.com/me-no-dev/ESPAsyncTCP
git clone https://github.com/me-no-dev/ESPAsyncWebServer
popd
}