|
| 1 | +sudo: required |
| 2 | +language: c |
| 3 | +dist: xenial |
| 4 | +git: |
| 5 | + depth: false |
| 6 | + quiet: true |
| 7 | + |
| 8 | +env: |
| 9 | + global: |
| 10 | + - BSP_PATH="$HOME/.arduino15/packages/adafruit/hardware/nrf52" |
| 11 | + jobs: |
| 12 | + # empty env required, else allow_failures will SILENTY IGNORE matching against env... |
| 13 | + - |
| 14 | + |
| 15 | +jobs: |
| 16 | + fast_finish: true |
| 17 | + include: |
| 18 | + - name: "Feather nRF52840" |
| 19 | + env: VARIANT="feather52840" |
| 20 | + - name: "Feather nRF52840 (All warnings)" |
| 21 | + env: ALL_WARNINGS="true" VARIANT="feather52840" |
| 22 | + - name: "Circuit Playground nRF52840" |
| 23 | + env: VARIANT="cplaynrf52840" |
| 24 | + - name: "Circuit Playground nRF52840 (All warnings)" |
| 25 | + env: ALL_WARNINGS="true" VARIANT="cplaynrf52840" |
| 26 | + - name: "Feather nRF52832" |
| 27 | + env: VARIANT="feather52832" |
| 28 | + - name: "Feather nRF52832 (All warnings)" |
| 29 | + env: ALL_WARNINGS="true" VARIANT="feather52832" |
| 30 | + - name: "ItsyBitsy nRF52840 Express" |
| 31 | + env: VARIANT="itsybitsy52840" |
| 32 | + - name: "Clue nRF52840" |
| 33 | + env: VARIANT="cluenrf52840" |
| 34 | + allow_failures: |
| 35 | + - env: ALL_WARNINGS="true" VARIANT="feather52840" |
| 36 | + - env: ALL_WARNINGS="true" VARIANT="cplaynrf52840" |
| 37 | + - env: ALL_WARNINGS="true" VARIANT="feather52832" |
| 38 | + |
| 39 | +addons: |
| 40 | + apt: |
| 41 | + packages: |
| 42 | + - python3 |
| 43 | + - python3-pip |
| 44 | + - python3-setuptools |
| 45 | + snaps: |
| 46 | + - name: ubuntu-make |
| 47 | + confinement: classic |
| 48 | + |
| 49 | +install: |
| 50 | + # Filter only mDNS / Bonjour traffic |
| 51 | + - sudo iptables --insert INPUT --jump DROP --protocol udp --dport 5353 -m comment --comment "silently drop all 5353/udp input" |
| 52 | + - sudo iptables --insert INPUT --jump DROP --destination 224.0.0.251 -m comment --comment "silently drop all mDNS ipv4 broadcast" |
| 53 | + # Install the nRF52 support files for arduino |
| 54 | + - pip3 install --user adafruit-nrfutil |
| 55 | + - umake electronics arduino $HOME/arduino_ide |
| 56 | + - export PATH=$HOME/arduino_ide:$PATH |
| 57 | + - arduino --pref "boardsmanager.additional.urls=https://adafruit.github.io/arduino-board-index/package_adafruit_index.json" --save-prefs |
| 58 | + # Install BSP for tools, then remove and create symlink the git code |
| 59 | + - arduino --install-boards adafruit:nrf52 |
| 60 | + - BSP_VERSION=`eval ls $BSP_PATH` |
| 61 | + - rm -r $BSP_PATH/* |
| 62 | + - ln -s $TRAVIS_BUILD_DIR $BSP_PATH/$BSP_VERSION |
| 63 | + - arduino --install-library "Adafruit NeoPixel","Adafruit NeoMatrix","Adafruit GFX Library","Adafruit SSD1306","MIDI Library","Adafruit ILI9341","Adafruit HX8357 Library","Adafruit Circuit Playground" |
| 64 | + |
| 65 | +before_script: |
| 66 | + |
| 67 | +script: |
| 68 | + - python3 tools/build_all_travis.py |
0 commit comments