2018-04-10 17:17:46 +02:00
|
|
|
sudo: false
|
|
|
|
language: python
|
2019-05-31 11:12:27 +02:00
|
|
|
python: '2.7'
|
2019-04-17 12:06:00 +02:00
|
|
|
install: script/setup
|
2019-03-05 13:27:38 +01:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- "~/.platformio"
|
|
|
|
|
2019-01-02 14:11:11 +01:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
2018-09-28 19:34:28 +02:00
|
|
|
include:
|
2019-01-02 14:11:11 +01:00
|
|
|
- python: "2.7"
|
|
|
|
env: TARGET=Lint2.7
|
2018-09-28 19:34:28 +02:00
|
|
|
script:
|
2019-04-17 12:06:00 +02:00
|
|
|
- script/ci-custom.py
|
2019-02-13 16:54:02 +01:00
|
|
|
- flake8 esphome
|
|
|
|
- pylint esphome
|
2019-01-02 14:11:11 +01:00
|
|
|
- python: "3.5.3"
|
|
|
|
env: TARGET=Lint3.5
|
|
|
|
script:
|
2019-04-17 12:06:00 +02:00
|
|
|
- script/ci-custom.py
|
2019-02-13 16:54:02 +01:00
|
|
|
- flake8 esphome
|
|
|
|
- pylint esphome
|
2019-01-02 14:11:11 +01:00
|
|
|
- python: "2.7"
|
|
|
|
env: TARGET=Test2.7
|
|
|
|
script:
|
2019-02-13 16:54:02 +01:00
|
|
|
- esphome tests/test1.yaml compile
|
|
|
|
- esphome tests/test2.yaml compile
|
|
|
|
- esphome tests/test3.yaml compile
|
2019-04-17 12:06:00 +02:00
|
|
|
- env: TARGET=Cpp-Lint
|
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
- llvm-toolchain-trusty-7
|
|
|
|
packages:
|
|
|
|
- clang-tidy-7
|
|
|
|
- clang-format-7
|
|
|
|
before_script:
|
|
|
|
- pio init --ide atom
|
|
|
|
- |
|
|
|
|
if ! patch -R -p0 -s -f --dry-run <script/.neopixelbus.patch; then
|
|
|
|
patch -p0 < script/.neopixelbus.patch
|
|
|
|
fi
|
|
|
|
- clang-tidy-7 -version
|
|
|
|
- clang-format-7 -version
|
|
|
|
- clang-apply-replacements-7 -version
|
|
|
|
script:
|
2019-05-12 23:04:36 +02:00
|
|
|
- script/clang-tidy --all-headers -j 2 --fix
|
|
|
|
- script/clang-format -i -j 2
|
2019-04-17 12:06:00 +02:00
|
|
|
- script/ci-suggest-changes
|