Skip to content

Commit

Permalink
Run unittests each travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalentity committed Jan 29, 2017
1 parent df634d5 commit 7486a2b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
26 changes: 12 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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:
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7486a2b

Please sign in to comment.