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

NEPT-1668: Allow to define commands in runner.yml.dist #25

Closed
ademarco opened this issue Jan 10, 2018 · 0 comments
Closed

NEPT-1668: Allow to define commands in runner.yml.dist #25

ademarco opened this issue Jan 10, 2018 · 0 comments
Assignees

Comments

@ademarco
Copy link
Member

ademarco commented Jan 10, 2018

Currently setup is scattered in several locations, we should harmonize that making sure that users can set it up in their runner.yml.dist, something like:

commands:

  setup:dev:
    - { task: "symlink", from: "${drupal.root}/modules/custom", to: "custom/modules" }
    - { task: "symlink", from: "${drupal.root}/modules/custom", to: "custom/themes" }
    - { task: "symlink", from: "${drupal.root}/modules/profiles", to: "custom/profiles" }
    - { task: "process", source: "behat.yml.dist", destination: "behat.yml.dist" }
    - { task: "process", source: "phpunit.xml.dist", destination: "phpunit.xml.dist" }

  setup:dist:
    - { task: "mirror", origin: "custom/modules",  target: "${drupal.root}/modules/custom" }
    - { task: "mirror", origin: "custom/themes",   target: "${drupal.root}/modules/custom" }
    - { task: "mirror", origin: "custom/profiles", target: "${drupal.root}/modules/profiles" }

That will expose:

$ ./vendor/bin/run setup:dev
$ ./vendor/bin/run setup:dist

Also this will allow to have setup:* commands being exposed in runner.yml.

@ademarco ademarco self-assigned this Jan 10, 2018
@ademarco ademarco changed the title NEPT-1105: Make setup configurable via runner.yml.dist NEPT-1105: Allow to define commands in runner.yml.dist Jan 11, 2018
@ademarco ademarco changed the title NEPT-1105: Allow to define commands in runner.yml.dist NEPT-1668: Allow to define commands in runner.yml.dist Jan 12, 2018
ademarco added a commit that referenced this issue Jan 13, 2018
ademarco added a commit that referenced this issue Jan 13, 2018
ademarco added a commit that referenced this issue Jan 13, 2018
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

1 participant