aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/delivery.c7
-rw-r--r--src/globals.c1
-rw-r--r--src/stasis_main.c1
3 files changed, 9 insertions, 0 deletions
diff --git a/src/delivery.c b/src/delivery.c
index 5c507bf..2064bd3 100644
--- a/src/delivery.c
+++ b/src/delivery.c
@@ -1687,6 +1687,13 @@ void delivery_tests_run(struct Delivery *ctx) {
struct Process proc;
memset(&proc, 0, sizeof(proc));
+ if (!globals.workaround.conda_reactivate) {
+ globals.workaround.conda_reactivate = calloc(PATH_MAX, sizeof(*globals.workaround.conda_reactivate));
+ } else {
+ memset(globals.workaround.conda_reactivate, 0, PATH_MAX);
+ }
+ snprintf(globals.workaround.conda_reactivate, PATH_MAX - 1, "\nset +x\neval `conda shell.posix reactivate`\nset -x\n");
+
if (!ctx->tests[0].name) {
msg(STASIS_MSG_WARN | STASIS_MSG_L2, "no tests are defined!\n");
} else {
diff --git a/src/globals.c b/src/globals.c
index 7ed7c3c..297598f 100644
--- a/src/globals.c
+++ b/src/globals.c
@@ -54,4 +54,5 @@ void globals_free() {
guard_free(globals.jfrog.jfrog_artifactory_product);
guard_free(globals.jfrog.remote_filename);
guard_free(globals.workaround.tox_posargs);
+ guard_free(globals.workaround.conda_reactivate);
}
diff --git a/src/stasis_main.c b/src/stasis_main.c
index 8f4e22e..c550982 100644
--- a/src/stasis_main.c
+++ b/src/stasis_main.c
@@ -258,6 +258,7 @@ int main(int argc, char *argv[]) {
tpl_register("deploy.jfrog.url", &globals.jfrog.url);
tpl_register("deploy.docker.registry", &ctx.deploy.docker.registry);
tpl_register("workaround.tox_posargs", &globals.workaround.tox_posargs);
+ tpl_register("workaround.conda_reactivate", &globals.workaround.conda_reactivate);
// Set up PREFIX/etc directory information
// The user may manipulate the base directory path with STASIS_SYSCONFDIR