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:
parent
6efae5f8f0
commit
e20ef9dd21
3 changed files with 7 additions and 11 deletions
|
@ -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"
|
||||||
|
|
|
@ -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}}"
|
|
||||||
|
|
|
@ -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" \
|
||||||
|
|
Loading…
Reference in a new issue