Skip to content

Commit 38c657a

Browse files
committed
Install necessary libraries during travis build
1 parent fa9d102 commit 38c657a

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ script:
2424
- which arduino
2525
- source hardware/esp8266com/esp8266/tests/common.sh
2626
- arduino --board esp8266com:esp8266:generic --save-prefs
27+
- arduino --get-pref sketchbook.path
28+
- install_libraries
2729
- build_sketches arduino $PWD/hardware/esp8266com/esp8266
2830

2931
notifications:

hardware/esp8266com/esp8266/tests/common.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,13 @@ function build_sketches()
2020
fi
2121
done
2222
}
23+
24+
function install_libraries()
25+
{
26+
pushd libraries
27+
28+
# install ArduinoJson library
29+
wget https://github.com/bblanchon/ArduinoJson/releases/download/v4.6.1/ArduinoJson-v4.6.1.zip && unzip ArduinoJson-v4.6.1.zip
30+
31+
popd
32+
}

0 commit comments

Comments
 (0)