2018-04-10 17:17:46 +02:00
|
|
|
sudo: false
|
|
|
|
language: python
|
2019-11-12 21:44:28 +01:00
|
|
|
python: '3.6'
|
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-10-18 16:51:16 +02:00
|
|
|
- python: "3.7"
|
|
|
|
env: TARGET=Lint3.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-11-12 21:44:28 +01:00
|
|
|
- python: "3.6"
|
|
|
|
env: TARGET=Test3.6
|
2019-10-18 16:51:16 +02:00
|
|
|
script:
|
|
|
|
- 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
|
|
|
|
- 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
|