Radish alpha
r
rad:z3qg5TKmN83afz2fj9z3fQjU8vaYE
Radicle CI adapter for native CI
Radicle
Git
temporary fix: sourced .bashrc to set $PATH
Lars Wirzenius committed 2 years ago
commit 072b942b1ea7c152fe0cc2ebccb53aeb5fa2d8d6
parent 18779c1
1 file changed +4 -1
modified src/main.rs
@@ -149,7 +149,10 @@ fn run(
    log.write(format!("CI run spec: {:#?}\n", runspec))?;

    debug!("running CI in cloned repository");
-
    let snippet = format!("set -xeuo pipefail\n{}", &runspec.shell);
+
    let snippet = format!(
+
        "set -xeuo pipefail\nsource $HOME/.bashrc\n\n{}",
+
        &runspec.shell
+
    );
    runcmd(&mut run_log, &["bash", "-c", &snippet], src)?;

    write_response(&Response::finished(RunResult::Success))?;