forked from cleanflight/cleanflight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
83 lines (67 loc) · 1.61 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
74
75
76
77
78
79
80
81
82
env:
# - PUBLISHMETA=True
# - PUBLISHDOCS=True
# Specify the main Mafile supported goals.
- GOAL=test
- GOAL=targets-group-1
- GOAL=targets-group-2
- GOAL=targets-group-3
- GOAL=targets-group-4
- GOAL=unsupported
- GOAL=targets-group-rest
# - GOAL=all
# - GOAL=AFROMINI
# - GOAL=AIORACERF3
# - GOAL=...
# Or specify targets to run.
# - TARGET=AFROMINI
# - TARGET=AIORACERF3
# - TARGET=...
# use new docker environment
sudo: false
git:
depth: 5
addons:
apt:
packages:
- lcov
- build-essential
- git
- libc6-i386
- time
- libblocksruntime-dev
# We use cpp for unit tests, and c for the main project.
language: cpp
compiler: clang
dist: trusty
before_install:
- pip install --user cpp-coveralls
- gem install coveralls-lcov
install:
- make arm_sdk_install
before_script:
- tools/gcc-arm-none-eabi-6-2017-q2-update/bin/arm-none-eabi-gcc --version
- clang --version
- clang++ --version
- gcc --version
script: ./.travis.sh
after_success:
- cd ${TRAVIS_BUILD_DIR}
- lcov --directory . -b src/test --capture --output-file coverage.info # capture coverage info
- lcov --remove coverage.info 'lib/test/*' 'src/test/*' '/usr/*' --output-file coverage.info # filter out system and test code
- lcov --list coverage.info # debug before upload
- coveralls-lcov coverage.info # uploads to coveralls
cache:
directories:
- downloads
- tools
#notifications:
# irc: "chat.freenode.net#cleanflight"
# use_notice: true
# skip_join: true
notifications:
irc:
channels:
- "chat.freenode.net#cleanflight"
use_notice: true
skip_join: true