Merge pull request #6218 from geky/g-fix-travis-python-versions-2

Travis: Tear out python3 testing to get CI working again
pull/6102/head
Cruz Monrreal 2018-02-27 16:18:43 -06:00 committed by GitHub
commit 5077644e6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 21 deletions

View File

@ -10,7 +10,7 @@ env:
--data @- << DATA\n{
"state": "$0",
"description": "$1",
"context": "travis-ci/$NAME/$(python --version)",
"context": "travis-ci/$NAME",
"target_url": "https://travis-ci.org/$TRAVIS_REPO_SLUG/jobs/$TRAVIS_JOB_ID"
}\nDATA'
@ -74,10 +74,6 @@ matrix:
- env:
- NAME=tools
python:
- '2.7'
- '3.5'
- '3.6'
install:
# Install dependencies
- sudo apt-get install gcc-arm-embedded
@ -89,7 +85,7 @@ matrix:
script:
# Run local testing on tools
- PYTHONPATH=. coverage run -a -m pytest tools/test
- python2 tools/test/pylint.py
- python tools/test/pylint.py
- coverage run -a tools/project.py -S | sed -n '/^Total/p'
- coverage html
after_success:
@ -199,8 +195,3 @@ matrix:
env: NAME=mbed2-NUVOTON
- <<: *mbed-2
env: NAME=mbed2-RENESAS
# Change python version here only because 3x the other jobs does not add any more coverage
python:
- '2.7'
- '3.5'
- '3.6'

View File

@ -1,5 +1,5 @@
{
"K64F": {
"exception_msg": "Additional properties are not allowed ('unknown_key' was unexpected)"
"exception_msg": "Additional properties are not allowed (u'unknown_key' was unexpected)"
}
}

View File

@ -1,5 +1,5 @@
{
"K64F": {
"exception_msg": "Additional properties are not allowed ('unknown_key' was unexpected)"
"exception_msg": "Additional properties are not allowed (u'unknown_key' was unexpected)"
}
}

View File

@ -15,13 +15,6 @@ from tools.toolchains import TOOLCHAIN_CLASSES, LEGACY_TOOLCHAIN_NAMES,\
Resources, TOOLCHAIN_PATHS, mbedToolchain
from tools.targets import TARGET_MAP
def test_instantiation():
"""Test that all exported toolchain may be instantiated"""
for name, tc_class in TOOLCHAIN_CLASSES.items():
cls = tc_class(TARGET_MAP["K64F"])
assert name == cls.name or\
name == LEGACY_TOOLCHAIN_NAMES[cls.name]
ALPHABET = [char for char in printable if char not in [u'.', u'/']]
@given(fixed_dictionaries({

View File

@ -309,7 +309,6 @@ class ARMC6(ARM_STD):
raise NotSupportedException(
"this compiler does not support the core %s" % target.core)
build_dir = kwargs['build_dir']
if not set(("ARM", "ARMC6")).intersection(set(target.supported_toolchains)):
raise NotSupportedException("ARM/ARMC6 compiler support is required for ARMC6 build")
@ -349,6 +348,7 @@ class ARMC6(ARM_STD):
# Create Secure library
if target.core == "Cortex-M23" or self.target.core == "Cortex-M33":
build_dir = kwargs['build_dir']
secure_file = join(build_dir, "cmse_lib.o")
self.flags["ld"] += ["--import_cmse_lib_out=%s" % secure_file]