forked from adafruit/Adafruit_nRF52_Arduino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml.bck
68 lines (62 loc) · 2.38 KB
/
.travis.yml.bck
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
sudo: required
language: c
dist: xenial
git:
depth: false
quiet: true
env:
global:
- BSP_PATH="$HOME/.arduino15/packages/adafruit/hardware/nrf52"
jobs:
# empty env required, else allow_failures will SILENTY IGNORE matching against env...
-
jobs:
fast_finish: true
include:
- name: "Feather nRF52840"
env: VARIANT="feather52840"
- name: "Feather nRF52840 (All warnings)"
env: ALL_WARNINGS="true" VARIANT="feather52840"
- name: "Circuit Playground nRF52840"
env: VARIANT="cplaynrf52840"
- name: "Circuit Playground nRF52840 (All warnings)"
env: ALL_WARNINGS="true" VARIANT="cplaynrf52840"
- name: "Feather nRF52832"
env: VARIANT="feather52832"
- name: "Feather nRF52832 (All warnings)"
env: ALL_WARNINGS="true" VARIANT="feather52832"
- name: "ItsyBitsy nRF52840 Express"
env: VARIANT="itsybitsy52840"
- name: "Clue nRF52840"
env: VARIANT="cluenrf52840"
allow_failures:
- env: ALL_WARNINGS="true" VARIANT="feather52840"
- env: ALL_WARNINGS="true" VARIANT="cplaynrf52840"
- env: ALL_WARNINGS="true" VARIANT="feather52832"
addons:
apt:
packages:
- python3
- python3-pip
- python3-setuptools
snaps:
- name: ubuntu-make
confinement: classic
install:
# Filter only mDNS / Bonjour traffic
- sudo iptables --insert INPUT --jump DROP --protocol udp --dport 5353 -m comment --comment "silently drop all 5353/udp input"
- sudo iptables --insert INPUT --jump DROP --destination 224.0.0.251 -m comment --comment "silently drop all mDNS ipv4 broadcast"
# Install the nRF52 support files for arduino
- 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","Adafruit Circuit Playground"
before_script:
script:
- python3 tools/build_all_travis.py