5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-21 22:36:22 +00:00

feat: no es necesario pasar los archivos como parametros

This commit is contained in:
f 2024-01-12 17:44:26 -03:00
parent 6efae5f8f0
commit e20ef9dd21
No known key found for this signature in database
3 changed files with 7 additions and 11 deletions

View file

@ -85,7 +85,7 @@ rubocop:
- *apk-add - *apk-add
- *disable-hainish - *disable-hainish
script: script:
- "./bin/modified_files | ./bin/with_extension rb | xargs -r go-task bundle -- exec rubocop" - "go-task rubocop"
haml: haml:
stage: "test" stage: "test"
cache: cache:
@ -96,4 +96,4 @@ haml:
- *apk-add - *apk-add
- *disable-hainish - *disable-hainish
script: script:
- "./bin/modified_files | ./bin/with_extension haml | xargs -r go-task bundle -- exec haml-lint" - "go-task haml-lint"

View file

@ -184,14 +184,10 @@ tasks:
status: status:
- "test -f ../hain/usr/bin/bundler-audit" - "test -f ../hain/usr/bin/bundler-audit"
rubocop: rubocop:
desc: "Ruby linting. Call with: go-task rubocop -- -A file.rb" desc: "Ruby linting"
cmds: cmds:
- task: "bundle" - "./bin/modified_files | ./bin/with_extension rb | xargs -r {{.HAINISH}} bundle exec rubocop {{.CLI_ARGS}}"
vars:
CLI_ARGS: "exec rubocop {{.CLI_ARGS}}"
haml-lint: haml-lint:
desc: "HAML linting. Call with: go-task haml-lint -- file.haml" desc: "HAML linting"
cmds: cmds:
- task: "bundle" - "./bin/modified_files | ./bin/with_extension haml | xargs -r {{.HAINISH}} bundle exec haml-lint {{.CLI_ARGS}}"
vars:
CLI_ARGS: "exec haml-lint {{.CLI_ARGS}}"

View file

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
set -e set -e
test -n "${CI_MERGE_REQUEST_DIFF_BASE_SHA}" CI_MERGE_REQUEST_DIFF_BASE_SHA="${CI_MERGE_REQUEST_DIFF_BASE_SHA:-origin/rails}"
git diff --name-status ${CI_MERGE_REQUEST_DIFF_BASE_SHA} \ git diff --name-status ${CI_MERGE_REQUEST_DIFF_BASE_SHA} \
| grep -v "^D" \ | grep -v "^D" \