{"action":"created","issue":{"url":"https://api.github.com/repos/ocaml/dune/issues/771","repository_url":"https://api.github.com/repos/ocaml/dune","labels_url":"https://api.github.com/repos/ocaml/dune/issues/771/labels{/name}","comments_url":"https://api.github.com/repos/ocaml/dune/issues/771/comments","events_url":"https://api.github.com/repos/ocaml/dune/issues/771/events","html_url":"https://github.com/ocaml/dune/issues/771","id":322538177,"node_id":"MDU6SXNzdWUzMjI1MzgxNzc=","number":771,"title":"Support for alias in subdirs","user":{"login":"samoht","id":103693,"node_id":"MDQ6VXNlcjEwMzY5Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/103693?v=4","gravatar_id":"","url":"https://api.github.com/users/samoht","html_url":"https://github.com/samoht","followers_url":"https://api.github.com/users/samoht/followers","following_url":"https://api.github.com/users/samoht/following{/other_user}","gists_url":"https://api.github.com/users/samoht/gists{/gist_id}","starred_url":"https://api.github.com/users/samoht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samoht/subscriptions","organizations_url":"https://api.github.com/users/samoht/orgs","repos_url":"https://api.github.com/users/samoht/repos","events_url":"https://api.github.com/users/samoht/events{/privacy}","received_events_url":"https://api.github.com/users/samoht/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-05-12T19:50:56Z","updated_at":"2018-06-28T14:37:45Z","closed_at":null,"author_association":"MEMBER","body":"Would be great to support things like:\r\n\r\n```\r\n(alias\r\n ((name foo/bar/runtest)\r\n  (action (chdir foo/bar (run echo hello)))))\r\n```\r\n\r\nThis would allow to have a `jbuild-ignore` file ignoring the contents of the `foo` directory, while having `jbuilder build @foo/bar/runtest` still working. This is useful for instance when `foo` contains documentation code examples that you want to test but not to be scanned while compiling the project.\r\n\r\n(This is related to #761)"},"comment":{"url":"https://api.github.com/repos/ocaml/dune/issues/comments/401057499","html_url":"https://github.com/ocaml/dune/issues/771#issuecomment-401057499","issue_url":"https://api.github.com/repos/ocaml/dune/issues/771","id":401057499,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTA1NzQ5OQ==","user":{"login":"trefis","id":118852,"node_id":"MDQ6VXNlcjExODg1Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/118852?v=4","gravatar_id":"","url":"https://api.github.com/users/trefis","html_url":"https://github.com/trefis","followers_url":"https://api.github.com/users/trefis/followers","following_url":"https://api.github.com/users/trefis/following{/other_user}","gists_url":"https://api.github.com/users/trefis/gists{/gist_id}","starred_url":"https://api.github.com/users/trefis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trefis/subscriptions","organizations_url":"https://api.github.com/users/trefis/orgs","repos_url":"https://api.github.com/users/trefis/repos","events_url":"https://api.github.com/users/trefis/events{/privacy}","received_events_url":"https://api.github.com/users/trefis/received_events","type":"User","site_admin":false},"created_at":"2018-06-28T14:37:45Z","updated_at":"2018-06-28T14:37:45Z","author_association":"CONTRIBUTOR","body":"I am very much in favor of this!\r\nAt the moment the setup for tests in merlin look like [this](https://github.com/ocaml/merlin/blob/d94382f115755ad1c92d8473cfd9e12abd5623ef/tests/locate/functors/jbuild#L1) (duplicated across several directories).\r\n\r\nI'd love to just have to write:\r\n```scheme\r\n(using cram-style-tests 1.0\r\n  (scheme (extension t) (action (setenv MERLIN ${bin:ocamlmerlin-server}\r\n                                 (run cram %{<})))))\r\n```\r\njust once at the root (though I wouldn't mind to much the alternative of writing `(cram_test (env MERLIN ${bin:ocamlmerlin-server}))` in each directory if cram rules were added).\r\n"}}
{"actor":{"display_login":"trefis"}}