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,9 +8,8 @@ addons:
- liblivemedia-dev - liblivemedia-dev
- libasound2-dev - libasound2-dev
env: env:
matrix: - TOOLCHAIN=
- TOOLCHAIN= - TOOLCHAIN=raspberry.toolchain
- TOOLCHAIN=raspberry.toolchain
before_install: before_install:
# for coverage # for coverage
- pip install --user cpp-coveralls pyYaml - pip install --user cpp-coveralls pyYaml
@ -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 .