mirror of https://github.com/ARMmbed/mbed-os.git
parent
d0f4dc4d20
commit
c703ad7cfb
45
.travis.yml
45
.travis.yml
|
@ -18,18 +18,6 @@ language: sh
|
||||||
os: linux
|
os: linux
|
||||||
dist: xenial
|
dist: xenial
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- >
|
|
||||||
STATUS=$'curl -so/dev/null --user "$MBED_BOT" --request POST
|
|
||||||
https://api.github.com/repos/$TRAVIS_REPO_SLUG/statuses/${TRAVIS_PULL_REQUEST_SHA:-$TRAVIS_COMMIT}
|
|
||||||
--data @- << DATA\n{
|
|
||||||
"state": "$0",
|
|
||||||
"description": "$1",
|
|
||||||
"context": "travis-ci/$NAME",
|
|
||||||
"target_url": "https://travis-ci.org/$TRAVIS_REPO_SLUG/jobs/$TRAVIS_JOB_ID"
|
|
||||||
}\nDATA'
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
pip: true
|
pip: true
|
||||||
directories:
|
directories:
|
||||||
|
@ -37,7 +25,6 @@ cache:
|
||||||
- $HOME/gcc-arm-none-eabi-6-2017-q2-update
|
- $HOME/gcc-arm-none-eabi-6-2017-q2-update
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- bash -c "$STATUS" pending "Local $NAME testing is in progress"
|
|
||||||
# Make sure pipefail
|
# Make sure pipefail
|
||||||
- set -o pipefail
|
- set -o pipefail
|
||||||
# Setup apt to cache
|
# Setup apt to cache
|
||||||
|
@ -52,12 +39,6 @@ before_install:
|
||||||
# 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)
|
||||||
|
|
||||||
after_success:
|
|
||||||
- bash -c "$STATUS" success "Local $NAME testing has passed"
|
|
||||||
|
|
||||||
after_failure:
|
|
||||||
- bash -c "$STATUS" failure "Local $NAME testing has failed"
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- env:
|
- env:
|
||||||
|
@ -130,8 +111,6 @@ matrix:
|
||||||
after_success:
|
after_success:
|
||||||
# Coverage for tools
|
# Coverage for tools
|
||||||
- coveralls
|
- coveralls
|
||||||
# Report success since we have overridden default behavior
|
|
||||||
- bash -c "$STATUS" success "Local $NAME testing has passed"
|
|
||||||
|
|
||||||
- env:
|
- env:
|
||||||
- NAME=doxy-spellcheck
|
- NAME=doxy-spellcheck
|
||||||
|
@ -150,8 +129,6 @@ matrix:
|
||||||
after_success:
|
after_success:
|
||||||
# Coverage for tools
|
# Coverage for tools
|
||||||
- coveralls
|
- coveralls
|
||||||
# Report success since we have overridden default behavior
|
|
||||||
- bash -c "$STATUS" success "Local $NAME testing has passed"
|
|
||||||
|
|
||||||
- <<: *tools-pytest
|
- <<: *tools-pytest
|
||||||
env: NAME=tools-py3.5
|
env: NAME=tools-py3.5
|
||||||
|
@ -221,12 +198,11 @@ matrix:
|
||||||
| capture(\"runtime is (?<runtime>[0-9]+)\").runtime" \
|
| capture(\"runtime is (?<runtime>[0-9]+)\").runtime" \
|
||||||
|| echo 0)
|
|| echo 0)
|
||||||
|
|
||||||
STATUSM="Passed, runtime is ${CURR} cycles"
|
#STATUSM="Passed, runtime is ${CURR} cycles"
|
||||||
if [ "$PREV" -ne 0 ]
|
#if [ "$PREV" -ne 0 ]
|
||||||
then
|
#then
|
||||||
STATUSM="$STATUSM ($(python -c "print '%+d' % ($CURR-$PREV)") cycles)"
|
# STATUSM="$STATUSM ($(python -c "print '%+d' % ($CURR-$PREV)") cycles)"
|
||||||
fi
|
#fi
|
||||||
- bash -c "$STATUS" success "$STATUSM"
|
|
||||||
|
|
||||||
- env:
|
- env:
|
||||||
- NAME=littlefs
|
- NAME=littlefs
|
||||||
|
@ -292,12 +268,11 @@ matrix:
|
||||||
| capture(\"code size is (?<size>[0-9]+)\").size" \
|
| capture(\"code size is (?<size>[0-9]+)\").size" \
|
||||||
|| echo 0)
|
|| echo 0)
|
||||||
|
|
||||||
STATUSM="Passed, code size is ${CURR}B"
|
#STATUSM="Passed, code size is ${CURR}B"
|
||||||
if [ "$PREV" -ne 0 ]
|
#if [ "$PREV" -ne 0 ]
|
||||||
then
|
#then
|
||||||
STATUSM="$STATUSM ($(python -c "print '%+.2f' % (100*($CURR-$PREV)/$PREV.0)")%)"
|
# STATUSM="$STATUSM ($(python -c "print '%+.2f' % (100*($CURR-$PREV)/$PREV.0)")%)"
|
||||||
fi
|
#fi
|
||||||
- bash -c "$STATUS" success "$STATUSM"
|
|
||||||
|
|
||||||
- env:
|
- env:
|
||||||
- NAME=gitattributestest
|
- NAME=gitattributestest
|
||||||
|
|
Loading…
Reference in New Issue