1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-12 10:59:59 +03:00

Run unittests each travis build

This commit is contained in:
Konstantin Sharlaimov (DigitalEntity) 2017-01-29 18:08:35 +10:00
parent df634d5438
commit 7486a2b156
3 changed files with 20 additions and 14 deletions

View file

@ -63,6 +63,8 @@ elif [ $TARGET ] ; then
else
make -j2 $MAKEFILE
fi
elif [ $GOAL ] ; then
make V=0 $GOAL
else
# No target specified, build all with very low verbosity.
make V=0 all

View file

@ -1,16 +1,9 @@
env:
# Specify the main Mafile supported goals.
- GOAL=test
- GOAL=all
# - TARGET=CC3D
# - TARGET=CJMCU
# - TARGET=NAZE
# - TARGET=STM32F3DISCOVERY
# - TARGET=RMDO
# - TARGET=SPRACINGF3
# - TARGET=SPRACINGF3EVO
# - TARGET=SPARKY
# - TARGET=FURYF3
# - TARGET=RCEXPLORERF3
# - TARGET=REVO
# use new docker environment
sudo: false
@ -28,12 +21,17 @@ addons:
language: cpp
compiler: clang
before_install: ./install-toolchain.sh
before_install:
install:
- export PATH=$PATH:$PWD/gcc-arm-none-eabi-6_2-2016q4/bin
- ./install-toolchain.sh
- export TOOLCHAINPATH=$PWD/gcc-arm-none-eabi-6_2-2016q4/bin
before_script:
- $TOOLCHAINPATH/arm-none-eabi-gcc --version
- clang --version
- clang++ --version
before_script: arm-none-eabi-gcc --version
script: ./.travis.sh
cache:

View file

@ -743,9 +743,15 @@ VPATH := $(VPATH):$(STDPERIPH_DIR)/src
#
# Tool names
ifneq ($(TOOLCHAINPATH),)
CC = $(TOOLCHAINPATH)/arm-none-eabi-gcc
OBJCOPY = $(TOOLCHAINPATH)/arm-none-eabi-objcopy
SIZE = $(TOOLCHAINPATH)/arm-none-eabi-size
else
CC = arm-none-eabi-gcc
OBJCOPY = arm-none-eabi-objcopy
SIZE = arm-none-eabi-size
endif
#
# Tool options.