forked from cleanflight/cleanflight
/
.travis.yml
executable file
·72 lines (65 loc) · 1.84 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
# boards are ordered by priority so that when monitoring a build developers get feedback on the important ones first.
env:
- RUNTESTS=True
- PUBLISHMETA=True
- PUBLISHDOCS=True
- TARGET=SPRACINGF3MINI
- TARGET=SPRACINGF3EVO
- TARGET=SPRACINGF3NEO
- TARGET=SPRACINGF3
- TARGET=SPRACINGF3OSD
- TARGET=SPRACINGF1OSD
- TARGET=NAZE
- TARGET=CC3D
- TARGET=CJMCU
- TARGET=SPARKY
- TARGET=COLIBRI_RACE
- TARGET=LUX_RACE
- TARGET=MOTOLAB
- TARGET=RMDO
- TARGET=ALIENFLIGHTF3
- TARGET=ALIENFLIGHTF1
- TARGET=STM32F3DISCOVERY
- TARGET=PORT103R
- TARGET=CHEBUZZF3
- TARGET=IRCFUSIONF3
- TARGET=RCEXPLORERF3
# use new docker environment
sudo: false
addons:
apt:
packages:
- lcov
- build-essential
- git
- libc6-i386
- zlib1g-dev
- libssl-dev
- wkhtmltopdf
- libxml2-dev
- libxslt-dev
- ccache
# We use cpp for unit tests, and c for the main project.
language: cpp
compiler: clang
before_install:
- pip install --user cpp-coveralls
- gem install coveralls-lcov
- curl --retry 10 --retry-max-time 120 -L "https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q2-update/+download/gcc-arm-none-eabi-5_4-2016q2-20160622-linux.tar.bz2" | tar xfj -
install:
- export PATH=$PATH:$PWD/gcc-arm-none-eabi-5_4-2016q2/bin
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
before_script: arm-none-eabi-gcc --version
script: ./.travis.sh
cache:
- apt
- ccache
notifications:
irc: "chat.freenode.net#cleanflight"
use_notice: true
skip_join: true