mirror of
https://github.com/mpromonet/v4l2rtspserver
synced 2024-11-06 03:20:22 +00:00
travis set toolchain
This commit is contained in:
parent
ef65405719
commit
164b939921
@ -26,9 +26,10 @@ language: cpp
|
||||
compiler: gcc
|
||||
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
|
||||
#build on native system
|
||||
- cmake . && make && cpack .
|
||||
- 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; cmake -DCMAKE_TOOLCHAIN_FILE=$TOOLCHAIN . fi
|
||||
- if [ "$TOOLCHAIN" == "" ]; then cmake .; fi
|
||||
#build
|
||||
- make && cpack .
|
||||
#run coverage test
|
||||
- if [ "$TOOLCHAIN" == "" ]; then cmake -DCOVERAGE=ON . && make && make test; fi
|
||||
after_success:
|
||||
|
Loading…
Reference in New Issue
Block a user