Skip to content

Commit 671a16b

Browse files
committed
test travis
1 parent d04d4f2 commit 671a16b

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.travis.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ git:
44
depth: false
55
quiet: true
66

7+
env:
8+
- BSP_PATH="$HOME/.arduino15/packages/adafruit/hardware/nrf52"
9+
710
addons:
811
apt:
912
packages:
@@ -21,12 +24,13 @@ install:
2124
- arduino --pref "boardsmanager.additional.urls=https://adafruit.github.io/arduino-board-index/package_adafruit_index.json" --save-prefs
2225
# Install BSP for tools, then remove and create symlink the git code
2326
- arduino --install-boards adafruit:nrf52
24-
- ls $HOME/.arduino15/packages/adafruit/hardware
25-
- ls $HOME/.arduino15/packages/adafruit/hardware/nrf52
26-
- rm -r $HOME/.arduino15/packages/adafruit/hardware/nrf52
27-
- echo $TRAVIS_BUILD_DIR
28-
- ln -s $TRAVIS_BUILD_DIR $HOME/.arduino15/packages/adafruit/hardware/nrf52
29-
- ls $HOME/.arduino15/packages/adafruit/hardware/nrf52
27+
- BSP_VERSION=`eval ls $BSP_PATH`
28+
- echo $(BSP_VERSION)
29+
- rm -r $BSP_PATH/*
30+
- ln -s $TRAVIS_BUILD_DIR $BSP_PATH/$BSP_VERSION
31+
- ls $BSP_PATH
32+
- ls $BSP_PATH/*
33+
- ls $BSP_PATH/*/*
3034
- tree $HOME/.arduino15/packages/adafruit/hardware/nrf52
3135
- arduino --install-library "Adafruit NeoPixel","Adafruit NeoMatrix","Adafruit GFX Library","Adafruit SSD1306","MIDI Library",
3236

0 commit comments

Comments
 (0)