Files
Adafruit_nRF52_Arduino/.travis.yml
T
Henry Gabryjelski 0417d8e3e1 Split TravisCI build into one job per variant
This change allows TravisCI integration for forks on
free accounts.  Those would otherwise fail, due to a
hard-coded and non-configurable 50 minute job limt
imposed by TravisCI.

This will also help avoid the 120 minute job limit
that applies to non-free accounts, which the current
builds are quickly approaching....
2019-11-04 12:07:53 -08:00

42 lines
1.1 KiB
YAML

language: c
dist: xenial
git:
depth: false
quiet: true
env:
global:
- BSP_PATH="$HOME/.arduino15/packages/adafruit/hardware/nrf52"
jobs:
# Split into one job per board (aka variant)
- VARIANT="feather52840"
- VARIANT="cplaynrf52840"
- VARIANT="feather52832"
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
- BSP_VERSION=`eval ls $BSP_PATH`
- rm -r $BSP_PATH/*
- ln -s $TRAVIS_BUILD_DIR $BSP_PATH/$BSP_VERSION
- arduino --install-library "Adafruit NeoPixel","Adafruit NeoMatrix","Adafruit GFX Library","Adafruit SSD1306","MIDI Library","Adafruit ILI9341","Adafruit HX8357 Library"
before_script:
script:
- python3 tools/build_all.py