mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-21 17:06:23 +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
|
||||
- *disable-hainish
|
||||
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:
|
||||
stage: "test"
|
||||
cache:
|
||||
|
@ -87,4 +87,4 @@ haml:
|
|||
- *apk-add
|
||||
- *disable-hainish
|
||||
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