1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix v vet filtering

This commit is contained in:
Delyan Angelov
2020-08-12 20:33:51 +03:00
parent 9478ff472f
commit 1a96bcf405
2 changed files with 8 additions and 3 deletions

View File

@ -29,8 +29,12 @@ fn main() {
is_verbose: '-verbose' in args || '-v' in args
}
for path in paths {
println(path)
if path.ends_with('_test.v') || path.contains('/tests/') {
if !os.exists(path) {
eprintln('File/folder $path does not exist')
continue
}
if path.ends_with('_test.v') || (path.contains('/tests/') && !path.contains('vlib/v/vet/')) {
eprintln('skipping $path')
continue
}
if path.ends_with('.v') {