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
|
10
.travis.yml
10
.travis.yml
|
@ -1,4 +1,5 @@
|
|||
env:
|
||||
- RUNTESTS=True
|
||||
- TARGET=CC3D
|
||||
- TARGET=CC3D OPBL=yes
|
||||
- TARGET=CHEBUZZF3
|
||||
|
@ -12,12 +13,13 @@ 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"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue