Browse Source

Run unittests each travis build

master
Konstantin Sharlaimov (DigitalEntity) 8 years ago
parent
commit
7486a2b156
  1. 2
      .travis.sh
  2. 26
      .travis.yml
  3. 6
      Makefile

2
.travis.sh

@ -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

26
.travis.yml

@ -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:

6
Makefile

@ -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.

Loading…
Cancel
Save