Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
20b29998
Commit
20b29998
authored
10 years ago
by
Philipp Rosenkranz
Browse files
Options
Downloads
Patches
Plain Diff
travis: add static tests as a matrix build target
parent
25808332
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.travis.yml
+1
-0
1 addition, 0 deletions
.travis.yml
dist/tools/travis-scripts/build_and_test.sh
+20
-17
20 additions, 17 deletions
dist/tools/travis-scripts/build_and_test.sh
dist/tools/travis-scripts/get-pkg-list.py
+8
-3
8 additions, 3 deletions
dist/tools/travis-scripts/get-pkg-list.py
with
29 additions
and
20 deletions
.travis.yml
+
1
−
0
View file @
20b29998
...
@@ -3,6 +3,7 @@ language: c
...
@@ -3,6 +3,7 @@ language: c
cache
:
apt
cache
:
apt
env
:
env
:
-
NPROC_MAX=8 BUILDTEST_MCU_GROUP=static-tests
-
NPROC_MAX=8 BUILDTEST_MCU_GROUP=avr8
-
NPROC_MAX=8 BUILDTEST_MCU_GROUP=avr8
-
NPROC_MAX=8 BUILDTEST_MCU_GROUP=msp430
-
NPROC_MAX=8 BUILDTEST_MCU_GROUP=msp430
-
NPROC_MAX=8 BUILDTEST_MCU_GROUP=x86
-
NPROC_MAX=8 BUILDTEST_MCU_GROUP=x86
...
...
This diff is collapsed.
Click to expand it.
dist/tools/travis-scripts/build_and_test.sh
+
20
−
17
View file @
20b29998
#!/bin/bash
#!/bin/bash
set
-e
set
-e
make
-s
-C
./examples/default info-concurrency
if
[[
$BUILDTEST_MCU_GROUP
]]
git rebase riot/master
||
git rebase
--abort
then
if
[
"
$BUILDTEST_MCU_GROUP
"
==
"static-tests"
]
./dist/tools/whitespacecheck/check.sh master
||
exit
then
make
-s
-C
./examples/default info-concurrency
git rebase riot/master
||
git rebase
--abort
./dist/tools/licenses/check.sh master
--diff-filter
=
MR
--error-exitcode
=
0
||
exit
./dist/tools/whitespacecheck/check.sh master
||
exit
./dist/tools/licenses/check.sh master
--diff-filter
=
AC
||
exit
./dist/tools/doccheck/check.sh master
||
exit
./dist/tools/licenses/check.sh master
--diff-filter
=
MR
--error-exitcode
=
0
||
exit
./dist/tools/licenses/check.sh master
--diff-filter
=
AC
||
exit
./dist/tools/
externc
/check.sh master
||
exit
./dist/tools/
doccheck
/check.sh master
||
exit
# TODO:
./dist/tools/externc/check.sh master
||
exit
# Remove all but `master` parameters to cppcheck (and remove second
# invocation) once all warnings of cppcheck have been taken care of
# in master.
./dist/tools/cppcheck/check.sh master
--diff-filter
=
MR
--error-exitcode
=
0
||
exit
./dist/tools/cppcheck/check.sh master
--diff-filter
=
AC
||
exit
if
[[
$BUILDTEST_MCU_GROUP
]]
# TODO:
then
# Remove all but `master` parameters to cppcheck (and remove second
# invocation) once all warnings of cppcheck have been taken care of
# in master.
./dist/tools/cppcheck/check.sh master
--diff-filter
=
MR
--error-exitcode
=
0
||
exit
./dist/tools/cppcheck/check.sh master
--diff-filter
=
AC
||
exit
./dist/tools/pr_check/pr_check.sh riot/master
exit
0
fi
if
[
"
$BUILDTEST_MCU_GROUP
"
==
"x86"
]
if
[
"
$BUILDTEST_MCU_GROUP
"
==
"x86"
]
then
then
...
@@ -32,5 +36,4 @@ then
...
@@ -32,5 +36,4 @@ then
# - make -C ./tests/unittests all test BOARD=qemu-i386 || exit
# - make -C ./tests/unittests all test BOARD=qemu-i386 || exit
fi
fi
./dist/tools/compile_test/compile_test.py
./dist/tools/compile_test/compile_test.py
./dist/tools/pr_check/pr_check.sh riot/master
fi
fi
This diff is collapsed.
Click to expand it.
dist/tools/travis-scripts/get-pkg-list.py
+
8
−
3
View file @
20b29998
...
@@ -6,15 +6,18 @@ arm_mcu_groups = ["arm7", "cortex_m0", "cortex_m3", "cortex_m3_2", "cortex_m4"]
...
@@ -6,15 +6,18 @@ arm_mcu_groups = ["arm7", "cortex_m0", "cortex_m3", "cortex_m3_2", "cortex_m4"]
msp_mcu_groups
=
[
"
msp430
"
]
msp_mcu_groups
=
[
"
msp430
"
]
x86_mcu_groups
=
[
"
x86
"
]
x86_mcu_groups
=
[
"
x86
"
]
avr8_mcu_groups
=
[
"
avr8
"
]
avr8_mcu_groups
=
[
"
avr8
"
]
known_mcu_groups
=
arm_mcu_groups
+
msp_mcu_groups
+
x86_mcu_groups
+
avr8_mcu_groups
static_tests_groups
=
[
"
static-tests
"
]
known_mcu_groups
=
arm_mcu_groups
+
msp_mcu_groups
+
x86_mcu_groups
+
avr8_mcu_groups
+
\
static_tests_groups
common_pkgs
=
[
"
pcregrep
"
,
"
libpcre3
"
,
"
python3
"
,
"
cppcheck
"
,
"
doxygen
"
]
common_pkgs
=
[
"
pcregrep
"
,
"
libpcre3
"
,
"
python3
"
]
arm_pkgs
=
[
"
gcc-arm-none-eabi
"
]
arm_pkgs
=
[
"
gcc-arm-none-eabi
"
]
msp_pkgs
=
[
"
gcc-msp430
"
]
msp_pkgs
=
[
"
gcc-msp430
"
]
x86_pkgs
=
[
"
qemu-system-x86
"
,
"
g++-multilib
"
,
"
gcc-multilib
"
,
\
x86_pkgs
=
[
"
qemu-system-x86
"
,
"
g++-multilib
"
,
"
gcc-multilib
"
,
\
"
build-essential
"
]
"
build-essential
"
]
avr8_pkgs
=
[
"
gcc-avr
"
,
"
binutils-avr
"
,
"
avr-libc
"
]
avr8_pkgs
=
[
"
gcc-avr
"
,
"
binutils-avr
"
,
"
avr-libc
"
]
all_mcu_pkgs
=
arm_pkgs
+
msp_pkgs
+
x86_pkgs
+
avr8_pkgs
static_tests_pkgs
=
[
"
doxygen
"
,
"
cppcheck
"
]
all_mcu_pkgs
=
arm_pkgs
+
msp_pkgs
+
x86_pkgs
+
avr8_pkgs
+
static_tests_pkgs
pkgs_to_install
=
common_pkgs
pkgs_to_install
=
common_pkgs
...
@@ -30,6 +33,8 @@ if "BUILDTEST_MCU_GROUP" in os.environ:
...
@@ -30,6 +33,8 @@ if "BUILDTEST_MCU_GROUP" in os.environ:
pkgs_to_install
+=
x86_pkgs
pkgs_to_install
+=
x86_pkgs
elif
mcu_group
in
avr8_mcu_groups
:
elif
mcu_group
in
avr8_mcu_groups
:
pkgs_to_install
+=
avr8_pkgs
pkgs_to_install
+=
avr8_pkgs
elif
mcu_group
in
static_tests_groups
:
pkgs_to_install
+=
static_tests_pkgs
else
:
else
:
pkgs_to_install
+=
all_mcu_pkgs
pkgs_to_install
+=
all_mcu_pkgs
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment