From 3ee246529be831c0d5e5458eca31bc8bf137b004 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 9 Sep 2019 19:23:41 +0300 Subject: Travis: run more scripts --- .travis/track_status.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 .travis/track_status.sh (limited to '.travis') diff --git a/.travis/track_status.sh b/.travis/track_status.sh new file mode 100755 index 0000000..3702676 --- /dev/null +++ b/.travis/track_status.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +set -o errexit -o nounset -o pipefail + +main() { + local log_path + log_path="$( mktemp )" + + nohup python3 -m bin.track_status egor.tensin > "$log_path" 2>&1 & + local pid="$!" + + sleep 15 + kill -SIGINT "$pid" + wait "$pid" + + cat "$log_path" +} + +main -- cgit v1.2.3