mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-12 19:10:27 +03:00
Run unittests each travis build
This commit is contained in:
parent
df634d5438
commit
7486a2b156
3 changed files with 20 additions and 14 deletions
|
@ -63,6 +63,8 @@ elif [ $TARGET ] ; then
|
||||||
else
|
else
|
||||||
make -j2 $MAKEFILE
|
make -j2 $MAKEFILE
|
||||||
fi
|
fi
|
||||||
|
elif [ $GOAL ] ; then
|
||||||
|
make V=0 $GOAL
|
||||||
else
|
else
|
||||||
# No target specified, build all with very low verbosity.
|
# No target specified, build all with very low verbosity.
|
||||||
make V=0 all
|
make V=0 all
|
||||||
|
|
24
.travis.yml
24
.travis.yml
|
@ -1,15 +1,8 @@
|
||||||
env:
|
env:
|
||||||
|
# Specify the main Mafile supported goals.
|
||||||
|
- GOAL=test
|
||||||
|
- GOAL=all
|
||||||
# - TARGET=CC3D
|
# - 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
|
# use new docker environment
|
||||||
sudo: false
|
sudo: false
|
||||||
|
@ -28,12 +21,17 @@ addons:
|
||||||
language: cpp
|
language: cpp
|
||||||
compiler: clang
|
compiler: clang
|
||||||
|
|
||||||
before_install: ./install-toolchain.sh
|
before_install:
|
||||||
|
|
||||||
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
|
script: ./.travis.sh
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -743,9 +743,15 @@ VPATH := $(VPATH):$(STDPERIPH_DIR)/src
|
||||||
#
|
#
|
||||||
|
|
||||||
# Tool names
|
# 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
|
CC = arm-none-eabi-gcc
|
||||||
OBJCOPY = arm-none-eabi-objcopy
|
OBJCOPY = arm-none-eabi-objcopy
|
||||||
SIZE = arm-none-eabi-size
|
SIZE = arm-none-eabi-size
|
||||||
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# Tool options.
|
# Tool options.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue