-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
116 lines (105 loc) · 5.58 KB
/
.travis.yml
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# This will run on Travis' 'new' container-based infrastructure
sudo: false
language: python
env:
global:
- ADDITIONAL_URLS="https://adafruit.github.io/arduino-board-index/package_adafruit_index.json,https://github.com/OPEnSLab-OSU/Loom_Auxiliary/raw/master/package_loom_index.json"
- DOXYFILE=$TRAVIS_BUILD_DIR/.travis/Doxyfile
- CORE="adafruit:samd" BOARD="loom:samd:loom"
cache:
directories:
- ~/arduino_ide
- ~/.arduino15/packages/
# Whitelist
branches:
only:
- master
notifications:
email: false
# Install dependencies
addons:
apt:
packages:
- doxygen
- graphviz
install:
#Installs Ardunio CLI and proper boards
- curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/usr/bin sudo sh
- arduino-cli core update-index --additional-urls $ADDITIONAL_URLS
- arduino-cli core install arduino:samd -v
- arduino-cli core install $CORE -v --additional-urls https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
- arduino-cli core install loom:samd -v --additional-urls https://github.com/OPEnSLab-OSU/Loom_Auxiliary/raw/master/package_loom_index.json
jobs:
include:
- stage: "Basic"
script:
- arduino-cli compile --warnings all --fqbn $BOARD $PWD/examples/Basic
- stage: "Actuators, Communication Platforms and Configuration"
script:
- arduino-cli compile --fqbn $BOARD $PWD/examples/Actuators/Relay
- arduino-cli compile --fqbn $BOARD $PWD/examples/'Communication Platforms'/LoRa/Receive
- arduino-cli compile --fqbn $BOARD $PWD/examples/'Communication Platforms'/LoRa/Receive_Blocking
- arduino-cli compile --fqbn $BOARD $PWD/examples/'Communication Platforms'/LoRa/Transmit
- arduino-cli compile --fqbn $BOARD $PWD/examples/'Communication Platforms'/nRF/Receive
- arduino-cli compile --fqbn $BOARD $PWD/examples/'Communication Platforms'/nRF/Transmit
- arduino-cli compile --fqbn $BOARD $PWD/examples/Configuration/ConfigOverSerial
- arduino-cli compile --fqbn $BOARD $PWD/examples/Configuration/Default_Parameters
- arduino-cli compile --fqbn $BOARD $PWD/examples/Configuration/JsonConfig
- arduino-cli compile --fqbn $BOARD $PWD/examples/Configuration/LoadConfigSD
- stage: "Extract Value From Json, Internal Timers, and Lab Examples"
script:
- arduino-cli compile --fqbn $BOARD $PWD/examples/ExtractValueFromJson
- arduino-cli compile --fqbn $BOARD $PWD/examples/InternalTimers
- arduino-cli compile --fqbn $BOARD $PWD/examples/'Lab Examples'/AGU/Base
- arduino-cli compile --fqbn $BOARD $PWD/examples/'Lab Examples'/Hypnos_SD
- arduino-cli compile --fqbn $BOARD $PWD/examples/'Lab Examples'/Hypnos_SD_Sleep
- arduino-cli compile --fqbn $BOARD $PWD/examples/'Lab Examples'/Ishield
#- arduino-cli compile --fqbn $BOARD $PWD/examples/'Lab Examples'/RFID
- arduino-cli compile --fqbn $BOARD $PWD/examples/'Lab Examples'/SmartRockLoomSimple
#- arduino-cli compile --fqbn $BOARD $PWD/examples/'Lab Examples'/Stroud/StroudNode
- stage: "Logging Platforms, Publishing Platforms, and Max"
script:
#- arduino-cli compile --fqbn $BOARD $PWD/examples/'Logging Platforms'/BatchSD
- arduino-cli compile --fqbn $BOARD $PWD/examples/'Logging Platforms'/OLED
- arduino-cli compile --fqbn $BOARD $PWD/examples/'Logging Platforms'/SD
- arduino-cli compile --fqbn $BOARD $PWD/examples/MaxMsp/SimpleMax
- arduino-cli compile --fqbn $BOARD $PWD/examples/'Publishing Platforms'/GoogleSheetsEthernet
- arduino-cli compile --fqbn $BOARD $PWD/examples/'Publishing Platforms'/GoogleSheetsLTE
- arduino-cli compile --fqbn $BOARD $PWD/examples/'Publishing Platforms'/GoogleSheetsRTC
- arduino-cli compile --fqbn $BOARD $PWD/examples/'Publishing Platforms'/GoogleSheetsWiFi
- stage: "RTC, Sensors, Sleep, and Wifi Firmware Update"
script:
- arduino-cli compile --fqbn $BOARD $PWD/examples/RTC/BasicRepeatingRTC_DS3231
- arduino-cli compile --fqbn $BOARD $PWD/examples/RTC/BasicRepeatingRTC_PCF8523
- arduino-cli compile --fqbn $BOARD $PWD/examples/Sensors/ADS1115
- arduino-cli compile --fqbn $BOARD $PWD/examples/Sensors/K30
- arduino-cli compile --fqbn $BOARD $PWD/examples/Sensors/MMA8451
- arduino-cli compile --fqbn $BOARD $PWD/examples/Sensors/MPU6050
- arduino-cli compile --fqbn $BOARD $PWD/examples/Sensors/Multiplexer
- arduino-cli compile --fqbn $BOARD $PWD/examples/Sleep/Sleep
- arduino-cli compile --fqbn $BOARD $PWD/examples/WiFiFirmwareUpdater
- stage: "Doxygen"
before_install:
- export PYTHONPATH=$PYTHONPATH:$(pwd)
install:
- git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
- git fetch --tags
- git clone git://github.com/mosra/m.css
- pip install jinja2 Pygments
script:
- mkdir ToDeploy
- doxygen Doxyfile
- mv doxygenV2/html ToDeploy
- python ./m.css/documentation/doxygen.py ./Doxyfile-mcss
- mv doxygenV2/ ToDeploy
- git checkout remotes/origin/gh-pages -- Aux/
- mv Aux/ ToDeploy
- echo $'<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html><head><meta http-equiv=Refresh content=\"0;url=doxygenV2/html/index.html\"></head></html>' > ToDeploy/index.html
deploy:
provider: pages
skip_cleanup: true
local_dir: ToDeploy
github_token: $GH_REPO_TOKEN
target_branch: gh-pages
on:
branch: master