-
-
Notifications
You must be signed in to change notification settings - Fork 8
Port to spago from bower/pulp #8
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
Conversation
* Upgrade to PureScript 0.13.8 * Introduce spago and get it working in a sandboxed environment * Remove bower/pulp * Documentation * Removed colorized output (will reintroduce later) * Refactor Dockerfile and bin/* scripts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work! Colorization can indeed be added later.
Once this is merged, the status.test_runner
property in the track's config.json
file should be set to true
(see https://github.com/exercism/purescript/blob/main/config.json#L7) and to add a test_runner.average_run_time
property. See https://github.com/exercism/csharp/blob/main/config.json#L19.
@@ -3,7 +3,7 @@ | |||
The Docker image for automatically run tests on PureScript solutions submitted | |||
to [exercism][web-exercism]. | |||
|
|||
This repository contains the Java test runner, which implements the | |||
This repository contains the PureScript test runner, which implements the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops!
@@ -15,3 +15,22 @@ To run a solution's test in the Docker container, do the following: | |||
|
|||
[test-runner-interface]: https://github.com/exercism/automated-tests/blob/master/docs/interface.md | |||
[web-exercism]: https://exercism.io/ | |||
|
|||
|
|||
## Design Goal and Implementation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great to have this explanation!
--mount type=bind,source="${input_dir}",destination=/solution \ | ||
--mount type=bind,source="${output_dir}",destination=/output \ | ||
--mount type=tmpfs,destination=/tmp \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the added explicitness!
Prevent sending unrelated files to the docker daemon as part of the build context.
@emiel Do you have merge permissions? |
@ErikSchierboom I do not. :) |
Merged :) Thanks! |
After lots of fooling around I've finally got this working. Let me know if I anything needs further clarification.
The PureScript exercises have been ported to Spago as well (exercism/purescript#185) and are awaiting this PR to be approved and merged.
I'm hoping some improvements can be made to spago so that we can simplify some of the steps needed here. There are already some outstanding tickets that would aid us here and I'll follow up with those soon.