From a593789a46ceb27d26186db7b3215b2a046ff865 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 26 Aug 2022 05:07:32 +0200 Subject: worker: capture process output --- src/ci.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/ci.h') diff --git a/src/ci.h b/src/ci.h index 4267b89..f890796 100644 --- a/src/ci.h +++ b/src/ci.h @@ -1,14 +1,9 @@ #ifndef __CI_H__ #define __CI_H__ -typedef enum { - RUN_ERROR = -1, - RUN_SUCCESS, - RUN_FAILURE, - RUN_NO, -} run_result; +#include "process.h" -run_result ci_run(int *ec); +int ci_run(struct proc_output *); /* * This is a high-level function. It's basically equivalent to the following @@ -23,6 +18,6 @@ run_result ci_run(int *ec); * rm -rf "$dir" * */ -run_result ci_run_git_repo(const char *url, const char *rev, int *ec); +int ci_run_git_repo(const char *url, const char *rev, struct proc_output *); #endif -- cgit v1.2.3