mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #6433 from cmonr/python3-in-travisci
Enabl-able Python 3 tools testing in Travis CIpull/7012/head
commit
2eac96eb04
18
.travis.yml
18
.travis.yml
|
|
@ -1,6 +1,5 @@
|
||||||
language: python
|
language: python
|
||||||
python:
|
python: 2.7
|
||||||
'2.7'
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
|
|
@ -30,6 +29,7 @@ before_install:
|
||||||
- sudo ln -s $HOME/.cache/apt /var/cache/apt/archives
|
- sudo ln -s $HOME/.cache/apt /var/cache/apt/archives
|
||||||
# Setup ppa to make sure arm-none-eabi-gcc is correct version
|
# Setup ppa to make sure arm-none-eabi-gcc is correct version
|
||||||
- sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa
|
- sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa
|
||||||
|
- sudo add-apt-repository -y ppa:deadsnakes/ppa
|
||||||
# Loop until update succeeds (timeouts can occur)
|
# Loop until update succeeds (timeouts can occur)
|
||||||
- travis_retry $(! sudo apt-get update 2>&1 |grep Failed)
|
- travis_retry $(! sudo apt-get update 2>&1 |grep Failed)
|
||||||
|
|
||||||
|
|
@ -72,14 +72,16 @@ matrix:
|
||||||
find -name "*.s" | tee BUILD/badasm |
|
find -name "*.s" | tee BUILD/badasm |
|
||||||
sed -e "s/^/Bad Assembler file name found: /" && [ ! -s BUILD/badasm ]
|
sed -e "s/^/Bad Assembler file name found: /" && [ ! -s BUILD/badasm ]
|
||||||
|
|
||||||
- env:
|
- &tools-pytest
|
||||||
- NAME=tools
|
env: NAME=tools-py2.7
|
||||||
|
python: 2.7
|
||||||
install:
|
install:
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
- sudo apt-get install gcc-arm-embedded
|
- sudo apt-get install gcc-arm-embedded
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
- pip install pytest pylint hypothesis mock coverage coveralls
|
- pip install pytest pylint hypothesis mock coverage coveralls
|
||||||
# Print versions we use
|
# Print versions we use
|
||||||
|
|
||||||
- arm-none-eabi-gcc --version
|
- arm-none-eabi-gcc --version
|
||||||
- python --version
|
- python --version
|
||||||
script:
|
script:
|
||||||
|
|
@ -94,6 +96,14 @@ matrix:
|
||||||
# Report success since we have overridden default behaviour
|
# Report success since we have overridden default behaviour
|
||||||
- bash -c "$STATUS" success "Local $NAME testing has passed"
|
- bash -c "$STATUS" success "Local $NAME testing has passed"
|
||||||
|
|
||||||
|
# - <<: *tools-pytest
|
||||||
|
# env: NAME=tools-py3.5
|
||||||
|
# python: 3.5
|
||||||
|
#
|
||||||
|
# - <<: *tools-pytest
|
||||||
|
# env: NAME=tools-py3.6
|
||||||
|
# python: 3.6
|
||||||
|
|
||||||
- env:
|
- env:
|
||||||
- NAME=astyle
|
- NAME=astyle
|
||||||
install:
|
install:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue