Merge pull request #307 from dominicgs/travis-ci-firmware
Build firmware as part of Travis-ci build
This commit is contained in:
38
.travis.yml
38
.travis.yml
@ -3,6 +3,7 @@ language: c
|
|||||||
cache: apt
|
cache: apt
|
||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
dist: trusty
|
||||||
|
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
@ -10,33 +11,44 @@ os:
|
|||||||
|
|
||||||
compiler:
|
compiler:
|
||||||
- gcc
|
- gcc
|
||||||
# - clang
|
- clang
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
exclude:
|
||||||
|
- os: osx
|
||||||
|
compiler: gcc
|
||||||
|
- os: linux
|
||||||
|
compiler: clang
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
# - wget https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q1-update/+download/gcc-arm-none-eabi-5_3-2016q1-20160330-linux.tar.bz2 -O /tmp/gcc-arm.tar.bz2
|
|
||||||
# - tar -xvf /tmp/gcc-arm.tar.bz2
|
|
||||||
# - export PATH=$PWD/gcc-arm-none-eabi-5_3-2016q1/bin:$PATH
|
|
||||||
- export CFLAGS="-Wall -Wextra -Werror"
|
- export CFLAGS="-Wall -Wextra -Werror"
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap PX4/homebrew-px4; brew update; fi
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libusb fftw; fi
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libusb fftw gcc-arm-none-eabi dfu-util; fi
|
||||||
|
# For virtualenv(?) reasons we can't apt-get install python-yaml
|
||||||
|
- pip install PyYAML
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- mkdir host/build
|
- mkdir host/build
|
||||||
- cd host/build
|
- cd host/build
|
||||||
- cmake ..
|
- cmake ..
|
||||||
- make
|
- make
|
||||||
# - cd ../../firmware/hackrf_usb
|
- cd ../../firmware/libopencm3
|
||||||
# - mkdir build
|
- make
|
||||||
# - cd build
|
- cd ../hackrf_usb
|
||||||
# - export CC="arm-none-eabi-gcc"
|
- mkdir build
|
||||||
# - export CXX="arm-none-eabi-g++"
|
- cd build
|
||||||
# - cmake ..
|
- cmake ..
|
||||||
# - make
|
- make
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
|
sources:
|
||||||
|
- debian-sid
|
||||||
packages:
|
packages:
|
||||||
- libusb-1.0-0-dev
|
- libusb-1.0-0-dev
|
||||||
- libfftw3-dev
|
- libfftw3-dev
|
||||||
|
- gcc-arm-none-eabi
|
||||||
|
- libnewlib-arm-none-eabi
|
||||||
|
- dfu-util
|
||||||
|
Reference in New Issue
Block a user