Skip to content

Commit 02d0c88

Browse files
committed
tests/travis: split buildtests into MCU groups.
1 parent a1a10fb commit 02d0c88

File tree

38 files changed

+120
-44
lines changed

38 files changed

+120
-44
lines changed

.travis.yml

Lines changed: 10 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@ language: c
33
cache: apt
44

55
env:
6-
- NPROC_MAX=8
6+
- NPROC_MAX=8 BUILDTEST_MCU_GROUP=avr8
7+
- NPROC_MAX=8 BUILDTEST_MCU_GROUP=msp430
8+
- NPROC_MAX=8 BUILDTEST_MCU_GROUP=x86
9+
- NPROC_MAX=8 BUILDTEST_MCU_GROUP=arm7
10+
- NPROC_MAX=8 BUILDTEST_MCU_GROUP=cortex_m0
11+
- NPROC_MAX=8 BUILDTEST_MCU_GROUP=cortex_m3_1
12+
- NPROC_MAX=8 BUILDTEST_MCU_GROUP=cortex_m3_2
13+
- NPROC_MAX=8 BUILDTEST_MCU_GROUP=cortex_m4
714

815
before_install:
916
- sudo apt-get install emdebian-archive-keyring
@@ -18,21 +25,7 @@ before_install:
1825

1926
install:
2027
- >
21-
sudo apt-get install \
22-
build-essential \
23-
gcc-multilib \
24-
gcc-arm-none-eabi \
25-
gcc-msp430 \
26-
pcregrep \
27-
libpcre3 \
28-
qemu-system-x86 \
29-
python3 \
30-
g++-multilib \
31-
gcc-avr \
32-
binutils-avr \
33-
avr-libc \
34-
cppcheck \
35-
doxygen
28+
sudo apt-get install $(./dist/tools/travis-scripts/get-pkg-list.py)
3629
- git config --global user.email "[email protected]"
3730
- git config --global user.name "Travis CI"
3831

@@ -41,33 +34,7 @@ install:
4134
- git log -1 --pretty=format:%H riot/master
4235

4336
script:
44-
- make -s -C ./examples/default info-concurrency
45-
- git rebase riot/master || git rebase --abort
46-
47-
- ./dist/tools/whitespacecheck/check.sh master || exit
48-
49-
- ./dist/tools/licenses/check.sh master --diff-filter=MR --error-exitcode=0 || exit
50-
- ./dist/tools/licenses/check.sh master --diff-filter=AC || exit
51-
52-
- ./dist/tools/doccheck/check.sh master || exit
53-
54-
- ./dist/tools/externc/check.sh master || exit
55-
56-
# TODO:
57-
# Remove all but `master` parameters to cppcheck (and remove second
58-
# invocation) once all warnings of cppcheck have been taken care of
59-
# in master.
60-
- ./dist/tools/cppcheck/check.sh master --diff-filter=MR --error-exitcode=0 || exit
61-
- ./dist/tools/cppcheck/check.sh master --diff-filter=AC || exit
62-
63-
- make -C ./tests/unittests all test BOARD=native || exit
64-
# TODO:
65-
# Reenable once https://github.com/RIOT-OS/RIOT/issues/2300 is
66-
# resolved:
67-
# - make -C ./tests/unittests all test BOARD=qemu-i386 || exit
68-
69-
- ./dist/tools/compile_test/compile_test.py
70-
- ./dist/tools/pr_check/pr_check.sh riot/master
37+
- ./dist/tools/travis-scripts/build_and_test.sh
7138

7239
notifications:
7340
email: false

Makefile.buildtests

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,14 @@ ifneq (, $(filter info-boards-supported info-boards-features-missing info-build,
216216
define board_missing_features
217217
FEATURES_PROVIDED := $(FEATURES_PROVIDED_BAK)
218218
-include $${RIOTBOARD}/${1}/Makefile.features
219+
ifneq ($(BUILDTEST_MCU_GROUP), $$(FEATURES_MCU_GROUP))
220+
BOARDS_FEATURES_MISSING += "${1} $${BUILDTEST_MCU_GROUP}"
221+
BOARDS_WITH_MISSING_FEATURES += ${1}
222+
endif
219223

220224
FEATURES_MISSING := $$(filter-out $$(FEATURES_PROVIDED), $$(FEATURES_REQUIRED))
221225
ifneq (, $${FEATURES_MISSING})
222226
BOARDS_FEATURES_MISSING += "${1} $${FEATURES_MISSING}"
223-
224227
ifneq (, $$(filter-out $$(FEATURES_OPTIONAL), $$(FEATURES_MISSING)))
225228
BOARDS_WITH_MISSING_FEATURES += ${1}
226229
endif
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
FEATURES_PROVIDED += cpp
22
FEATURES_PROVIDED += periph_uart periph_gpio periph_random periph_rtt periph_cpuid
3+
FEATURES_MCU_GROUP = cortex_m0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
FEATURES_PROVIDED += cpp
22
FEATURES_PROVIDED += periph_uart periph_gpio periph_spi periph_random
3+
FEATURES_MCU_GROUP = cortex_m3_1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
FEATURES_PROVIDED += periph_uart
2+
FEATURES_MCU_GROUP = avr8

boards/avsextrem/Makefile.features

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
FEATURES_PROVIDED += transceiver periph_rtc
2+
FEATURES_MCU_GROUP = arm7

boards/cc2538dk/Makefile.features

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
FEATURES_PROVIDED += cpp
22
FEATURES_PROVIDED += periph_uart periph_gpio periph_random periph_cpuid
3+
FEATURES_MCU_GROUP = cortex_m3_1

boards/chronos/Makefile.features

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
FEATURES_PROVIDED += transceiver periph_rtc
2+
FEATURES_MCU_GROUP = msp430

boards/f4vi1/Makefile.features

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
FEATURES_PROVIDED += cpp
22
FEATURES_PROVIDED += periph_uart
3+
FEATURES_MCU_GROUP = cortex_m4

boards/fox/Makefile.features

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
FEATURES_PROVIDED += transceiver periph_gpio periph_uart periph_spi periph_i2c periph_rtt periph_cpuid cpp
2+
FEATURES_MCU_GROUP = cortex_m3_1

0 commit comments

Comments
 (0)