Radish alpha
r
Radicle CI adapter for native CI
Radicle
Git (anonymous pull)
Log in to clone via SSH
temporary fix: sourced .bashrc to set $PATH
Lars Wirzenius committed 2 years ago
commit 072b942b1ea7c152fe0cc2ebccb53aeb5fa2d8d6
parent 18779c10cd90965898128e58339a0aef4d9c2db4
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))?;