forked from PX4/DriverFramework
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
49 lines (42 loc) · 887 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Build and autotest script for DriverFramework
# http://travis-ci.org
language: cpp
compiler: clang
matrix:
fast_finish: true
include:
- os: linux
dist: trusty
sudo: false
- os: osx
osx_image: xcode8
sudo: true
addons:
apt:
sources:
- kubuntu-backports
- ubuntu-toolchain-r-test
- george-edison55-precise-backports
packages:
- build-essential
- clang-3.5
- cmake
before_install:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
pushd .
&& cd ~
&& mkdir -p ~/bin
&& wget -O ~/bin/astyle https://github.com/PX4/astyle/releases/download/2.06/astyle-linux
&& chmod +x ~/bin/astyle
&& astyle --version
&& popd
;
fi
before_script:
- export PATH=~/bin:$PATH
script:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
make check-style
;
fi
- make run