This repository has been archived by the owner on Jul 30, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy path.travis.yml
50 lines (47 loc) · 1.4 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
language: python
os: linux
dist: trusty
before_install:
- sudo apt-get update
jobs:
include:
- name: "cpplint"
script:
- pip install -U cpplint
- cpplint --repository=. --recursive --linelength=200 --filter=-build/include,-build/header_guard ./src
- name: "cppcheck"
addons:
apt:
packages:
- cppcheck
script:
- cppcheck --error-exitcode=1 --enable=warning,style,performance,portability -DARDUINO_ARCH_ESP32=1 ./src
- name: "Test"
script:
- pip install -U platformio
- platformio update
- rm -rf build
- mkdir build
- platformio ci --lib="./src" --project-conf="scripts/platformio.ini" --build-dir=build --keep-build-dir tests
- ./build/.pio/build/catch2/program
- name: "Memcheck"
addons:
apt:
packages:
- valgrind
script:
- pip install -U platformio
- platformio update
- rm -rf build
- mkdir build
- platformio ci --lib="./src" --project-conf="scripts/platformio.ini" --build-dir=build --keep-build-dir tests
- valgrind --leak-check=full ./build/.pio/build/catch2/program
- name: "Build examples"
before_install:
- chmod +x ./scripts/build_examples.sh
script:
- ./scripts/build_examples.sh
notifications:
email:
on_success: change
on_failure: change