travis: Make sure we use the current Kaleidoscope

As it turns out, simply removing the `library.properties` from the Bundle's
Kaleidoscope is not enough to discard it completely. So instead, to make sure
we're using the right version of it, remove the copy from the bundle, and
symlink ourselves back in.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/807/head
Gergely Nagy 5 years ago
parent 53993860f0
commit b8d5c3a203
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -9,9 +9,10 @@ addons:
- shellcheck - shellcheck
install: install:
- git clone --depth 1 --recurse-submodules https://github.com/keyboardio/Kaleidoscope-Bundle-Keyboardio hardware/keyboardio - git clone --depth 1 --recurse-submodules https://github.com/keyboardio/Kaleidoscope-Bundle-Keyboardio hardware/keyboardio
## We delete the library.properties of the Bundle's Kaleidoscope. ## We delete the Bundle's version of Kaleidoscope, and symlink ourselves in.
## We do this to force Arduino to use the current one instead of the bundled version. ## This makes sure we're using the current version of the library.
- rm -f hardware/keyboardio/avr/libraries/Kaleidoscope/library.properties - rm -rf hardware/keyboardio/avr/libraries/Kaleidoscope
- ln -s $(pwd) hardware/keyboardio/avr/libraries/Kaleidoscope
script: script:
- make travis-test KALEIDOSCOPE_TEMP_PATH=$(pwd)/.kaleidoscope-build-cache BOARD_HARDWARE_PATH=$(pwd)/hardware - make travis-test KALEIDOSCOPE_TEMP_PATH=$(pwd)/.kaleidoscope-build-cache BOARD_HARDWARE_PATH=$(pwd)/hardware
notifications: notifications:

Loading…
Cancel
Save