34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
language: c
|
|
dist: xenial
|
|
git:
|
|
depth: false
|
|
quiet: true
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- python3
|
|
- python3-pip
|
|
- python3-setuptools
|
|
snaps:
|
|
- name: ubuntu-make
|
|
confinement: classic
|
|
|
|
install:
|
|
- pip3 install --user adafruit-nrfutil
|
|
- umake electronics arduino $HOME/arduino_ide
|
|
- export PATH=$HOME/arduino_ide:$PATH
|
|
- arduino --pref "boardsmanager.additional.urls=https://adafruit.github.io/arduino-board-index/package_adafruit_index.json" --save-prefs
|
|
# Install BSP for tools, then remove and create symlink the git code
|
|
- arduino --install-boards adafruit:nrf52
|
|
- ls $HOME/.arduino15/packages/adafruit/hardware
|
|
- rm -r $HOME/.arduino15/packages/adafruit/hardware/nrf52
|
|
- ln -s $TRAVIS_BUILD_DIR $HOME/.arduino15/packages/adafruit/hardware/nrf52
|
|
- ls $HOME/.arduino15/packages/adafruit/hardware
|
|
- arduino --install-library "Adafruit NeoPixel","Adafruit NeoMatrix","Adafruit GFX Library","Adafruit SSD1306","MIDI Library",
|
|
|
|
before_script:
|
|
|
|
script:
|
|
- python3 tools/build_all.py
|