ctf-tools/bin/travis-ci-status/fetch_latest_timingdata.inside-docker.sh

12 lines
301 B
Bash
Raw Normal View History

#!/bin/bash -ex
2017-03-10 12:30:13 +00:00
tmpfile=/logs/travis.log
2017-03-10 12:30:13 +00:00
# Fetch data
(
for i in $(travis show --skip-completion-check --no-interactive | grep '^#' | awk '{print $1}' | tr "#" " ");
do
travis logs --skip-completion-check --no-interactive "$i" | grep '^\[ACCOUNTING\]=====\[' | cut -d' ' -f2-5
done
) > $tmpfile