travis fix buid matrix

This commit is contained in:
Michel Promonet 2018-01-20 14:31:12 +01:00
parent 22115dfe87
commit b6984f79a9

View File

@ -8,7 +8,6 @@ addons:
- liblivemedia-dev - liblivemedia-dev
- libasound2-dev - libasound2-dev
env: env:
matrix:
- TOOLCHAIN= - TOOLCHAIN=
- TOOLCHAIN=raspberry.toolchain - TOOLCHAIN=raspberry.toolchain
before_install: before_install:
@ -18,6 +17,7 @@ language: cpp
compiler: compiler:
- gcc - gcc
script: script:
- echo "TOOLCHAIN=$TOOLCHAIN"
- if [ "$TOOLCHAIN" != "" ]; then git clone --depth 1 https://github.com/raspberrypi/tools.git rpi_tools && export PATH=$PATH:$(pwd)/rpi_tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin; fi - if [ "$TOOLCHAIN" != "" ]; then git clone --depth 1 https://github.com/raspberrypi/tools.git rpi_tools && export PATH=$PATH:$(pwd)/rpi_tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin; fi
#build on native system #build on native system
- cmake . && make && cpack . - cmake . && make && cpack .