Skip to content

Commit 902115f

Browse files
committed
[CI] Specify core version
Arduino 1.8.10 required a core version to be able to build. Signed-off-by: Frederic Pillon <[email protected]>
1 parent 333af7d commit 902115f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: .travis.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@ matrix:
5454
- ./arduino --save-prefs --pref "boardsmanager.additional.urls=https://github.com/stm32duino/BoardManagerFiles/raw/dev/STM32/package_stm_index.json"
5555
# Install the latest core version
5656
- ./arduino --install-boards STM32:stm32
57-
- rm -fr $HOME/.arduino15/packages/STM32/hardware/stm32/*
58-
# Replace default core with the one being built
59-
- sudo ln -s $TRAVIS_BUILD_DIR $HOME/.arduino15/packages/STM32/hardware/stm32/*
57+
# Replace default core with the one being built
58+
- export CORE_VERSION=`ls $HOME/.arduino15/packages/STM32/hardware/stm32`;
59+
rm -fr $HOME/.arduino15/packages/STM32/hardware/stm32/*;
60+
sudo ln -s $TRAVIS_BUILD_DIR $HOME/.arduino15/packages/STM32/hardware/stm32/$CORE_VERSION
6061
before_script:
6162
- cd $TRAVIS_BUILD_DIR/CI/build/
6263
- cp ./conf/path_config_travis.json ./path_config.json

0 commit comments

Comments
 (0)