mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 09:17:46 +01:00
7a43231c43
* Support for Python 3 * Add later Python releases * Remove Python 3.6 * Re-enable Python 2.7 * Remove platformio-core zip archive * Re-enable Python 2.7 * Fixes for python 3 Co-Authored-By: C W <fake-name@users.noreply.github.com>
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
sudo: false
|
|
language: python
|
|
python: '3.5'
|
|
install: script/setup
|
|
cache:
|
|
directories:
|
|
- "~/.platformio"
|
|
|
|
matrix:
|
|
fast_finish: true
|
|
include:
|
|
- python: "3.7"
|
|
env: TARGET=Lint3.7
|
|
script:
|
|
- script/ci-custom.py
|
|
- flake8 esphome
|
|
- pylint esphome
|
|
- python: "3.5.3"
|
|
env: TARGET=Lint3.5
|
|
script:
|
|
- script/ci-custom.py
|
|
- flake8 esphome
|
|
- pylint esphome
|
|
- python: "3.5"
|
|
env: TARGET=Test3.5
|
|
script:
|
|
- esphome tests/test1.yaml compile
|
|
- esphome tests/test2.yaml compile
|
|
- esphome tests/test3.yaml compile
|
|
- python: "2.7"
|
|
env: TARGET=Test2.7
|
|
script:
|
|
- esphome tests/test1.yaml compile
|
|
- esphome tests/test2.yaml compile
|
|
- esphome tests/test3.yaml compile
|
|
- 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:
|
|
- script/clang-tidy --all-headers -j 2 --fix
|
|
- script/clang-format -i -j 2
|
|
- script/ci-suggest-changes
|