Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: unable to use Git.run #631

Closed
Thegaram opened this issue Mar 27, 2018 · 2 comments
Closed

CI: unable to use Git.run #631

Thegaram opened this issue Mar 27, 2018 · 2 comments

Comments

@Thegaram
Copy link
Contributor

I was trying to run a CI workflow similar to this (taken from here):

let one_hour = 60. *. 60.

let make = Git.command ~logs ~label:"make" ~timeout:one_hour ~clone:true [
    [| "make"; "build" |];
    [| "make"; "test" |];
  ]

let my_test =
  Git.fetch_head local_repo >>= fun src ->
  Git.run make src >>= fun () ->
  Term.return "Tests succeeded"

But I am getting the error Command "make" "build" exited with status 127, suggesting make is unknown. But if I run make build on my console, everything works just fine. Are there any additional steps needed to make this work?

@talex5
Copy link
Contributor

talex5 commented Mar 27, 2018

If you're running it inside a Docker container, you'll need to make sure that the container has make installed (edit the Dockerfile to install it).

@Thegaram
Copy link
Contributor Author

Oops I totally forgot about this, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants