forked from esphome/esphome-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (50 loc) · 1.26 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
language: python
python:
- "2.7"
install:
- pip install -U platformio
cache:
directories:
- "~/.platformio"
- "$TRAVIS_BUILD_DIR/.piolibdeps"
matrix:
fast_finish: true
include:
- env: TARGET=lint
dist: trusty
sudo: required
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-7
packages:
- cmake
- clang-tidy-7
- clang-format-7
before_script:
- pio init --ide clion
- |
if ! patch -R -p0 -s -f --dry-run <travis/neopixelbus.patch; then
patch -p0 < travis/neopixelbus.patch
fi
- cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .
- clang-tidy-7 -version
- clang-format-7 -version
- clang-apply-replacements-7 -version
- nproc
script:
- python travis/run-clang-tidy.py -j 2 --fix
- python travis/run-clang-format.py -i -j 2
- travis/suggest-changes.sh
- env: TARGET=livingroom
script: &run_script
- python travis/travis.py
- platformio run -e $TARGET --disable-auto-clean
- env: TARGET=livingroom8266
script: *run_script
- env: TARGET=custombmp180
script: *run_script
- env: TARGET=fastled
script: *run_script
if: branch = dev AND type = push