Skip to content

Commit 5077644

Browse files
authored
Merge pull request #6218 from geky/g-fix-travis-python-versions-2
Travis: Tear out python3 testing to get CI working again
2 parents 1f58782 + 24bb556 commit 5077644

File tree

5 files changed

+5
-21
lines changed

5 files changed

+5
-21
lines changed

.travis.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
--data @- << DATA\n{
1111
"state": "$0",
1212
"description": "$1",
13-
"context": "travis-ci/$NAME/$(python --version)",
13+
"context": "travis-ci/$NAME",
1414
"target_url": "https://travis-ci.org/$TRAVIS_REPO_SLUG/jobs/$TRAVIS_JOB_ID"
1515
}\nDATA'
1616
@@ -74,10 +74,6 @@ matrix:
7474
7575
- env:
7676
- NAME=tools
77-
python:
78-
- '2.7'
79-
- '3.5'
80-
- '3.6'
8177
install:
8278
# Install dependencies
8379
- sudo apt-get install gcc-arm-embedded
@@ -89,7 +85,7 @@ matrix:
8985
script:
9086
# Run local testing on tools
9187
- PYTHONPATH=. coverage run -a -m pytest tools/test
92-
- python2 tools/test/pylint.py
88+
- python tools/test/pylint.py
9389
- coverage run -a tools/project.py -S | sed -n '/^Total/p'
9490
- coverage html
9591
after_success:
@@ -199,8 +195,3 @@ matrix:
199195
env: NAME=mbed2-NUVOTON
200196
- <<: *mbed-2
201197
env: NAME=mbed2-RENESAS
202-
# Change python version here only because 3x the other jobs does not add any more coverage
203-
python:
204-
- '2.7'
205-
- '3.5'
206-
- '3.6'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"K64F": {
3-
"exception_msg": "Additional properties are not allowed ('unknown_key' was unexpected)"
3+
"exception_msg": "Additional properties are not allowed (u'unknown_key' was unexpected)"
44
}
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"K64F": {
3-
"exception_msg": "Additional properties are not allowed ('unknown_key' was unexpected)"
3+
"exception_msg": "Additional properties are not allowed (u'unknown_key' was unexpected)"
44
}
55
}

tools/test/toolchains/api_test.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@
1515
Resources, TOOLCHAIN_PATHS, mbedToolchain
1616
from tools.targets import TARGET_MAP
1717

18-
def test_instantiation():
19-
"""Test that all exported toolchain may be instantiated"""
20-
for name, tc_class in TOOLCHAIN_CLASSES.items():
21-
cls = tc_class(TARGET_MAP["K64F"])
22-
assert name == cls.name or\
23-
name == LEGACY_TOOLCHAIN_NAMES[cls.name]
24-
2518
ALPHABET = [char for char in printable if char not in [u'.', u'/']]
2619

2720
@given(fixed_dictionaries({

tools/toolchains/arm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ def __init__(self, target, *args, **kwargs):
309309
raise NotSupportedException(
310310
"this compiler does not support the core %s" % target.core)
311311

312-
build_dir = kwargs['build_dir']
313312
if not set(("ARM", "ARMC6")).intersection(set(target.supported_toolchains)):
314313
raise NotSupportedException("ARM/ARMC6 compiler support is required for ARMC6 build")
315314

@@ -349,6 +348,7 @@ def __init__(self, target, *args, **kwargs):
349348

350349
# Create Secure library
351350
if target.core == "Cortex-M23" or self.target.core == "Cortex-M33":
351+
build_dir = kwargs['build_dir']
352352
secure_file = join(build_dir, "cmse_lib.o")
353353
self.flags["ld"] += ["--import_cmse_lib_out=%s" % secure_file]
354354

0 commit comments

Comments
 (0)