Repository navigation
Expand file tree
/
Copy path.travis.yml
More file actions
58 lines (49 loc) · 1.37 KB
/
Copy path.travis.yml
File metadata and controls
58 lines (49 loc) · 1.37 KB
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
language: c
cache: apt
sudo: false
dist: trusty
os:
- linux
- osx
compiler:
- gcc
- clang
matrix:
exclude:
- os: linux
- os: osx
include:
- os: linux
compiler: gcc
- os: osx
osx_image: xcode7.3
compiler: clang
before_script:
- export CFLAGS="-Wall -Wextra"
# - export CFLAGS="-Wall -Wextra -Werror"
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew tap PX4/homebrew-px4; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gcc-arm-none-eabi dfu-util; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget -O gcc-arm-none-eabi.tar.bz2 https://developer.arm.com/-/media/Files/downloads/gnu-rm/6-2017q2/gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then tar xf gcc-arm-none-eabi.tar.bz2; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PATH=$PATH:$PWD/gcc-arm-none-eabi-6-2017-q2-update/bin; fi
# For virtualenv(?) reasons we can't apt-get install python-yaml
- pip install PyYAML
script:
- cd host
- python setup.py build
# - python setup.py --prefix=. install
- cd ..
- mkdir firmware/build-greatfet_one
- mkdir firmware/build-nxp_xplorer
- mkdir firmware/build-rad1o_badge
- cd firmware/libopencm3
- make
- cd ../build-greatfet_one
- cmake ..
- make
addons:
apt:
packages:
- python-usb
- dfu-util