-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (25 loc) · 954 Bytes
/
.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
language: python
python:
- "2.7"
# Cache PlatformIO packages using Travis CI container-based infrastructure
sudo: false
cache:
directories:
- "~/.platformio"
env:
- PLATFORMIO_CI_SRC=examples/dht/dht.ino PLATFORMIO_CI_EXTRA_ARGS="--board=d1_mini"
- PLATFORMIO_CI_SRC=examples/blink_enum/blink_enum.ino PLATFORMIO_CI_EXTRA_ARGS="--board=d1_mini"
- PLATFORMIO_CI_SRC=examples/blinker/blinker.ino PLATFORMIO_CI_EXTRA_ARGS="--board=lolin32"
- CPPLINT=true
install:
- pip install -U platformio
- platformio lib install 5495
- platformio lib -g install file://.
- pip install -U cpplint
# - export PLATFORMIO_BUILD_FLAGS="-DTEMPLATE_PLACEHOLDER=\'~\'"
script:
- if [[ "$CPPLINT" ]]; then cpplint --repository=. --recursive --linelength=200 --filter=-build/include ./src; else platformio ci --lib="." $PLATFORMIO_CI_EXTRA_ARGS; fi
notifications:
email:
on_success: change
on_failure: change