-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
73 lines (64 loc) · 1.83 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Continuous Integration (CI) is the practice, in software
# engineering, of merging all developer working copies with a shared mainline
# several times a day < http://docs.platformio.org/page/ci/index.html >
#
# Documentation:
#
# * Travis CI Embedded Builds with PlatformIO
# < https://docs.travis-ci.com/user/integration/platformio/ >
#
# * PlatformIO integration with Travis CI
# < http://docs.platformio.org/page/ci/travis.html >
#
# * User Guide for `platformio ci` command
# < http://docs.platformio.org/page/userguide/cmd_ci.html >
#
language: python
python:
- "2.7"
sudo: false
cache:
directories:
- "~/.platformio"
# update Makefile if target boards added
env:
global:
- CXX=g++-5
#- PLATFORMIO_BOARD=uno
- PLATFORMIO_BOARD=nodemcuv2
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- lcov
- doxygen
- doxygen-doc
- doxygen-latex
- doxygen-gui
- graphviz
- cppcheck
install:
- pip install -U platformio
#- platformio lib install 44
script:
- platformio run
# Build and run unit tests
#- bash test/run_tests.sh
# Run static code analysis over the source code
- cppcheck --std=c++11 --enable=performance,portability,information --quiet --error-exitcode=1 src/
#- platformio ci --lib="." --board=nodemcuv2
after_success:
- bash run_coverage.sh
# Upload report to codecov
#- bash <(curl -s https://codecov.io/bash) -s coverage-reports || echo "Codecov did not collect coverage reports"
# Generate documentation
- doxygen Doxyfile
notifications:
email: false
slack:
rooms:
secure: <enter secure hash-key for slack-channel here>
on_failure: always
on_success: change