Skip to content

Commit

Permalink
Merge pull request #6378 from geky/events-travis-prof
Browse files Browse the repository at this point in the history
equeue: Added profiling reports to Travis
  • Loading branch information
cmonr committed Mar 21, 2018
2 parents 7b325f3 + d828fc0 commit 58f5795
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .travis.yml
Expand Up @@ -115,6 +115,24 @@ matrix:
- python tools/make.py -t GCC_ARM -m DISCO_F401VC --source=. --build=BUILD/DISCO_F401VC/GCC_ARM -j0
# Run local equeue tests
- make -C $EVENTS/equeue test
# Run profiling tests
- make -C $EVENTS/equeue prof | tee prof
after_success:
# update status if we succeeded, compare with master if possible
- |
CURR=$(grep -o '[0-9]\+ cycles' prof | awk '{sum += $1} END {print sum}')
PREV=$(curl https://api.github.com/repos/$TRAVIS_REPO_SLUG/status/master \
| jq -re "select(.sha != \"$TRAVIS_COMMIT\")
| .statuses[] | select(.context == \"travis-ci/$NAME\").description
| capture(\"runtime is (?<runtime>[0-9]+)\").runtime" \
|| echo 0)
STATUSM="Passed, runtime is ${CURR} cycles"
if [ "$PREV" -ne 0 ]
then
STATUSM="$STATUSM ($(python -c "print '%+d' % ($CURR-$PREV)") cycles)"
fi
- bash -c "$STATUS" success "$STATUSM"

- env:
- NAME=littlefs
Expand Down

0 comments on commit 58f5795

Please sign in to comment.