forked from bertmelis/VitoWiFi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
25 lines (21 loc) · 1.09 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
language: python
python:
- "2.7"
# Cache PlatformIO packages using Travis CI container-based infrastructure
sudo: false
cache:
directories:
- "~/.platformio"
env:
- PLATFORMIO_CI_SRC=examples/globalCallback/globalCallback.ino PLATFORMIO_CI_EXTRA_ARGS="--board=d1_mini"
- PLATFORMIO_CI_SRC=examples/globalCallback-esp32/globalCallback-esp32.ino PLATFORMIO_CI_EXTRA_ARGS="--board=lolin32"
- PLATFORMIO_CI_SRC=examples/specificCallback/specificCallback.ino PLATFORMIO_CI_EXTRA_ARGS="--board=d1_mini"
- PLATFORMIO_CI_SRC=examples/readDatapoint/readDatapoint.ino PLATFORMIO_CI_EXTRA_ARGS="--board=d1_mini"
- PLATFORMIO_CI_SRC=examples/setupMethods/setupMethods.ino PLATFORMIO_CI_EXTRA_ARGS="--board=d1_mini"
- PLATFORMIO_CI_SRC=examples/rawOptolink/rawOptolink.ino PLATFORMIO_CI_EXTRA_ARGS="--board=d1_mini"
- CPPLINT=true
install:
- pip install -U platformio
- pip install -U cpplint
script:
- if [[ "$CPPLINT" ]]; then cpplint --repository=. --recursive --linelength=200 --filter=-build/include ./src; else platformio ci --lib="." $PLATFORMIO_CI_EXTRA_ARGS; fi