Travis clean up (#562)

Tidy Travis dependency installation
This commit is contained in:
Dominic Spill
2018-12-05 18:49:10 -07:00
committed by GitHub
parent 9da826e9ef
commit 7ebd2a3b5a

View File

@ -1,40 +1,37 @@
language: c language: c
cache: apt
dist: xenial
os:
- linux
- osx
compiler:
- gcc
- clang
matrix: matrix:
exclude:
- os: linux
- os: osx
include: include:
- os: linux - os: linux
compiler: gcc compiler: gcc
cache: apt
dist: xenial
- os: osx - os: osx
compiler: clang compiler: clang
before_script: addons:
- export CFLAGS="-Wall -Wextra -Werror" apt:
packages:
- libusb-1.0-0-dev
- libfftw3-dev
- dfu-util
- gcc-arm-none-eabi
- libnewlib-arm-none-eabi
- python-yaml
homebrew:
taps: PX4/homebrew-px4
packages:
- fftw
- gcc-arm-none-eabi
- dfu-util
before_install: before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap PX4/homebrew-px4; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip install PyYAML; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install fftw gcc-arm-none-eabi dfu-util; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH=/usr/local/bin:$PATH; fi before_script:
# Linux containers don't have access to the latest gcc-arm-none-eabi package - export CFLAGS="-Wall -Wextra -Werror"
- 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: script:
- mkdir host/build - mkdir host/build
@ -56,10 +53,3 @@ script:
- cd ../build-rad1o - cd ../build-rad1o
- cmake -DBOARD=RAD1O .. - cmake -DBOARD=RAD1O ..
- make - make
addons:
apt:
packages:
- libusb-1.0-0-dev
- libfftw3-dev
- dfu-util