1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Merge branch 'travis-test-two' of https://github.com/avoid3d/cleanflight into avoid3d-travis-test-two

Conflicts:
	src/test/Makefile
This commit is contained in:
Dominic Clifton 2015-01-25 01:35:39 +01:00
commit 6bf6ca4b29
3 changed files with 18 additions and 5 deletions

7
.travis.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
# A hacky way of running the unit tests at the same time as the normal builds.
if [ $RUNTESTS ] ; then
cd ./src/test && make test
else
make -j2
fi

View file

@ -1,4 +1,5 @@
env:
- RUNTESTS=True
- TARGET=CC3D
- TARGET=CC3D OPBL=yes
- TARGET=CHEBUZZF3
@ -12,14 +13,15 @@ env:
- TARGET=SPARKY
- TARGET=STM32F3DISCOVERY
- TARGET=ALIENWIIF1
language: c
compiler: arm-none-eabi-gcc
# We use cpp for unit tests, and c for the main project.
language: cpp
compiler: clang
before_install: sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded && sudo apt-get update
install: sudo apt-get install build-essential gcc-arm-none-eabi git
before_script: $CC --version
script: make -j2
before_script: arm-none-eabi-gcc --version
script: ./.travis.sh
notifications:
irc: "chat.freenode.net#cleanflight"
use_notice: true
skip_join: true
skip_join: true

View file

@ -318,4 +318,8 @@ ws2811_unittest : \
$(CXX) $(CXX_FLAGS) -lpthread $^ -o $(OBJECT_DIR)/$@
test: $(TESTS)
set -e && for test in $(TESTS) ; do \
$(OBJECT_DIR)/$$test; \
done