5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-26 13:26:08 +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
- *disable-hainish
script:
- "./bin/modified_files | ./bin/with_extension rb | xargs -r go-task bundle -- exec rubocop"
- "go-task rubocop"
haml:
stage: "test"
cache:
@ -96,4 +96,4 @@ haml:
- *apk-add
- *disable-hainish
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:
- "test -f ../hain/usr/bin/bundler-audit"
rubocop:
desc: "Ruby linting. Call with: go-task rubocop -- -A file.rb"
desc: "Ruby linting"
cmds:
- task: "bundle"
vars:
CLI_ARGS: "exec rubocop {{.CLI_ARGS}}"
- "./bin/modified_files | ./bin/with_extension rb | xargs -r {{.HAINISH}} bundle exec rubocop {{.CLI_ARGS}}"
haml-lint:
desc: "HAML linting. Call with: go-task haml-lint -- file.haml"
desc: "HAML linting"
cmds:
- task: "bundle"
vars:
CLI_ARGS: "exec haml-lint {{.CLI_ARGS}}"
- "./bin/modified_files | ./bin/with_extension haml | xargs -r {{.HAINISH}} bundle exec haml-lint {{.CLI_ARGS}}"

View file

@ -1,7 +1,7 @@
#!/bin/sh
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} \
| grep -v "^D" \