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
e9e9a1c0
Commit
e9e9a1c0
authored
10 years ago
by
Philipp Rosenkranz
Browse files
Options
Downloads
Patches
Plain Diff
travis: fixed pep8 code style issues in python support script
parent
0f0f291d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dist/tools/travis-scripts/get-pkg-list.py
+23
-22
23 additions, 22 deletions
dist/tools/travis-scripts/get-pkg-list.py
with
23 additions
and
22 deletions
dist/tools/travis-scripts/get-pkg-list.py
+
23
−
22
View file @
e9e9a1c0
...
@@ -25,35 +25,36 @@ msp_mcu_groups = ["msp430"]
...
@@ -25,35 +25,36 @@ msp_mcu_groups = ["msp430"]
x86_mcu_groups
=
[
"
x86
"
]
x86_mcu_groups
=
[
"
x86
"
]
avr8_mcu_groups
=
[
"
avr8
"
]
avr8_mcu_groups
=
[
"
avr8
"
]
static_tests_groups
=
[
"
static-tests
"
]
static_tests_groups
=
[
"
static-tests
"
]
known_mcu_groups
=
arm_mcu_groups
+
msp_mcu_groups
+
x86_mcu_groups
+
avr8_mcu_groups
+
\
known_mcu_groups
=
arm_mcu_groups
+
msp_mcu_groups
+
x86_mcu_groups
+
\
static_tests_groups
avr8_mcu_groups
+
static_tests_groups
common_pkgs
=
[
"
pcregrep
"
,
"
libpcre3
"
,
"
python3
"
]
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
"
]
static_tests_pkgs
=
[
"
doxygen
"
,
"
cppcheck
"
]
static_tests_pkgs
=
[
"
doxygen
"
,
"
cppcheck
"
]
all_mcu_pkgs
=
arm_pkgs
+
msp_pkgs
+
x86_pkgs
+
avr8_pkgs
+
static_tests_pkgs
all_mcu_pkgs
=
arm_pkgs
+
msp_pkgs
+
\
x86_pkgs
+
avr8_pkgs
+
static_tests_pkgs
pkgs_to_install
=
common_pkgs
pkgs_to_install
=
common_pkgs
if
"
BUILDTEST_MCU_GROUP
"
in
os
.
environ
:
if
"
BUILDTEST_MCU_GROUP
"
in
os
.
environ
:
mcu_group
=
os
.
environ
[
"
BUILDTEST_MCU_GROUP
"
]
mcu_group
=
os
.
environ
[
"
BUILDTEST_MCU_GROUP
"
]
if
mcu_group
not
in
known_mcu_groups
:
if
mcu_group
not
in
known_mcu_groups
:
pkgs_to_install
+=
all_mcu_pkgs
pkgs_to_install
+=
all_mcu_pkgs
elif
mcu_group
in
arm_mcu_groups
:
elif
mcu_group
in
arm_mcu_groups
:
pkgs_to_install
+=
arm_pkgs
pkgs_to_install
+=
arm_pkgs
elif
mcu_group
in
msp_mcu_groups
:
elif
mcu_group
in
msp_mcu_groups
:
pkgs_to_install
+=
msp_pkgs
pkgs_to_install
+=
msp_pkgs
elif
mcu_group
in
x86_mcu_groups
:
elif
mcu_group
in
x86_mcu_groups
:
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
:
elif
mcu_group
in
static_tests_groups
:
pkgs_to_install
+=
static_tests_pkgs
pkgs_to_install
+=
static_tests_pkgs
else
:
else
:
pkgs_to_install
+=
all_mcu_pkgs
pkgs_to_install
+=
all_mcu_pkgs
print
"
"
.
join
(
pkgs_to_install
)
print
"
"
.
join
(
pkgs_to_install
)
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