36 lines
1 KiB
YAML
36 lines
1 KiB
YAML
language: c
|
|
sudo: false
|
|
cache:
|
|
directories:
|
|
- ~/arduino_ide
|
|
- ~/.arduino15/packages/
|
|
git:
|
|
depth: false
|
|
quiet: true
|
|
env:
|
|
global:
|
|
- PRETTYNAME="Adafruit MSA301 Arduino Library"
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- llvm-toolchain-trusty-5.0
|
|
- key_url: 'http://apt.llvm.org/llvm-snapshot.gpg.key'
|
|
packages:
|
|
- clang-format-5.0
|
|
|
|
before_install:
|
|
- source <(curl -SLs https://raw.githubusercontent.com/adafruit/travis-ci-arduino/master/install.sh)
|
|
- curl -SLs https://raw.githubusercontent.com/adafruit/travis-ci-arduino/master/run-clang-format.py > run-clang-format.py
|
|
|
|
install:
|
|
- arduino --install-library "Adafruit BusIO"
|
|
- arduino --install-library "Adafruit Unified Sensor"
|
|
|
|
script:
|
|
- python run-clang-format.py -r .
|
|
- build_main_platforms
|
|
|
|
# Generate and deploy documentation
|
|
after_success:
|
|
- source <(curl -SLs https://raw.githubusercontent.com/adafruit/travis-ci-arduino/master/library_check.sh)
|
|
- source <(curl -SLs https://raw.githubusercontent.com/adafruit/travis-ci-arduino/master/doxy_gen_and_deploy.sh)
|