Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit ce31376

Browse files
grgustafJimmy Huang
authored andcommitted
[travis] Cache the SDK directory to speed up builds drastically (#967)
Signed-off-by: Geoff Gustafson <geoff@linux.intel.com>
1 parent 6438700 commit ce31376

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,19 @@ env:
2525
- TARGET="linux"
2626
- TARGET="ashell"
2727

28+
cache:
29+
directories:
30+
- $ZEPHYR_SDK_INSTALL_DIR
31+
2832
before_install:
2933
- sudo apt-get update -qq
3034
- sudo apt-get install make gcc g++ python3-ply ncurses-dev uglifyjs sysvbanner -qq
3135

3236
install: >
33-
if [ "$TARGET" != "linux" ]; then
37+
if [ "$TARGET" != "linux" -a "$(cat $ZEPHYR_SDK_INSTALL_DIR/sdk_version)" != "$ZEPHYR_SDK_VERSION" ]; then
3438
wget $ZEPHYR_SDK_DOWNLOAD_URL &&
3539
chmod +x $ZEPHYR_SDK_SETUP_BINARY &&
40+
rm -rf $ZEPHYR_SDK_INSTALL_DIR &&
3641
./$ZEPHYR_SDK_SETUP_BINARY --quiet -- -y -d $ZEPHYR_SDK_INSTALL_DIR > /dev/null;
3742
fi
3843

0 commit comments

Comments
 (0)