mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 04:26:22 +00:00
ci: no fallar si no hay archivos
This commit is contained in:
parent
1dfd76704f
commit
aa0aac20e6
2 changed files with 6 additions and 2 deletions
|
@ -76,7 +76,7 @@ rubocop:
|
||||||
- *apk-add
|
- *apk-add
|
||||||
- *disable-hainish
|
- *disable-hainish
|
||||||
script:
|
script:
|
||||||
- "./bin/modified_files | grep .rb | xargs -r go-task bundle -- exec rubocop"
|
- "./bin/modified_files | ./bin/with_extension rb | xargs -r go-task bundle -- exec rubocop"
|
||||||
haml:
|
haml:
|
||||||
stage: "test"
|
stage: "test"
|
||||||
cache:
|
cache:
|
||||||
|
@ -87,4 +87,4 @@ haml:
|
||||||
- *apk-add
|
- *apk-add
|
||||||
- *disable-hainish
|
- *disable-hainish
|
||||||
script:
|
script:
|
||||||
- "./bin/modified_files | grep .haml | xargs -r go-task bundle -- exec haml-lint"
|
- "./bin/modified_files | ./bin/with_extension haml | xargs -r go-task bundle -- exec haml-lint"
|
||||||
|
|
4
bin/with_extension
Executable file
4
bin/with_extension
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
grep "\.${1}$"
|
||||||
|
exit 0
|
Loading…
Reference in a new issue