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:
commit
6bf6ca4b29
3 changed files with 18 additions and 5 deletions
7
.travis.sh
Executable file
7
.travis.sh
Executable 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
|
12
.travis.yml
12
.travis.yml
|
@ -1,4 +1,5 @@
|
||||||
env:
|
env:
|
||||||
|
- RUNTESTS=True
|
||||||
- TARGET=CC3D
|
- TARGET=CC3D
|
||||||
- TARGET=CC3D OPBL=yes
|
- TARGET=CC3D OPBL=yes
|
||||||
- TARGET=CHEBUZZF3
|
- TARGET=CHEBUZZF3
|
||||||
|
@ -12,14 +13,15 @@ env:
|
||||||
- TARGET=SPARKY
|
- TARGET=SPARKY
|
||||||
- TARGET=STM32F3DISCOVERY
|
- TARGET=STM32F3DISCOVERY
|
||||||
- TARGET=ALIENWIIF1
|
- TARGET=ALIENWIIF1
|
||||||
language: c
|
# We use cpp for unit tests, and c for the main project.
|
||||||
compiler: arm-none-eabi-gcc
|
language: cpp
|
||||||
|
compiler: clang
|
||||||
before_install: sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded && sudo apt-get update
|
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
|
install: sudo apt-get install build-essential gcc-arm-none-eabi git
|
||||||
before_script: $CC --version
|
before_script: arm-none-eabi-gcc --version
|
||||||
script: make -j2
|
script: ./.travis.sh
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
irc: "chat.freenode.net#cleanflight"
|
irc: "chat.freenode.net#cleanflight"
|
||||||
use_notice: true
|
use_notice: true
|
||||||
skip_join: true
|
skip_join: true
|
||||||
|
|
|
@ -318,4 +318,8 @@ ws2811_unittest : \
|
||||||
|
|
||||||
$(CXX) $(CXX_FLAGS) -lpthread $^ -o $(OBJECT_DIR)/$@
|
$(CXX) $(CXX_FLAGS) -lpthread $^ -o $(OBJECT_DIR)/$@
|
||||||
|
|
||||||
|
test: $(TESTS)
|
||||||
|
set -e && for test in $(TESTS) ; do \
|
||||||
|
$(OBJECT_DIR)/$$test; \
|
||||||
|
done
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue