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

11 lines
301 B
Bash
Executable file

#!/bin/bash -ex
tmpfile=/logs/travis.log
# 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