diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2019-09-09 20:19:59 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2019-09-09 20:23:00 +0300 |
commit | 745728caf8b2f5eb11b31030ef709a8ad093d27b (patch) | |
tree | d6cff5cd65ac2727af421720ad4b911e90e5f5a9 | |
parent | Travis: add mutual_friends.py twice (diff) | |
download | vk-scripts-745728caf8b2f5eb11b31030ef709a8ad093d27b.tar.gz vk-scripts-745728caf8b2f5eb11b31030ef709a8ad093d27b.zip |
Travis: write to database from track_status.py
-rwxr-xr-x | .travis/track_status.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/.travis/track_status.sh b/.travis/track_status.sh index 0e3d2d8..5a473f0 100755 --- a/.travis/track_status.sh +++ b/.travis/track_status.sh @@ -7,13 +7,17 @@ track_status() { log_path="$( mktemp )" echo "Log file path: $log_path" - local rm_log_path - rm_log_path="$( printf -- 'rm -f -- %q' "$log_path" )" + local db_path + db_path="$( mktemp --dry-run )" + echo "DB file path: $db_path" - trap "$rm_log_path" RETURN + local rm_aux_files + rm_aux_files="$( printf -- 'rm -f -- %q' "$log_path" "$db_path" )" + + trap "$rm_aux_files" RETURN echo 'Running track_status.py...' - python3 -m bin.track_status egor.tensin --log "$log_path" & + python3 -m bin.track_status egor.tensin --log "$log_path" --format csv --output "$db_path" & local pid="$!" echo "Its PID is $pid" |