forked from dart-archive/www.dartlang.org
-
Notifications
You must be signed in to change notification settings - Fork 1
/
runtests.bat
39 lines (29 loc) · 872 Bytes
/
runtests.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@echo off
rem #####
rem # Flagrantly copied from runtests.sh
rem # See that file for more inspiration.
rem #####
rem #####
rem # Type Analysis
setlocal
set ANA=dart_analyzer --enable_type_checks --fatal-type-errors --extended-exit-code --type-checks-for-inferred-types
echo
echo Type Analysis, running dart_analyzer...
set EXITSTATUS=0
rem ####
rem # test files one at a time
rem #
SET ROOT=src\site\articles
FOR /F "DELIMS==" %%d in ('DIR "%ROOT%" /AD /B') DO (
if exist "%ROOT%\%%d\code\*.dart" (
FOR /F "DELIMS==" %%f in ('DIR "%ROOT%\%%d\code\*.dart" /B') DO (
if exist "%ROOT%\%%d\code\%%f" (
call %ANA% "%ROOT%\%%d\code\%%f"
rem TODO: Capture output
rem TODO: Determine success or failure
rem TODO: Modify exitstatus accordingly.
)
)
)
)
exit /b EXITSTATUS