File tree Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ export PATH="$PATH:$DART_SDK/bin"
20
20
export RETURN_VALUE=0
21
21
22
22
start_phase " Analyzing"
23
- analyze_files $( find $REPO_ROOT / lib -name " *.dart " )
23
+ dart analyze lib
24
24
RETURN_VALUE=$( expr $RETURN_VALUE + $? )
25
25
26
- analyze_files $( find $REPO_ROOT / test -name ' *.dart ' )
26
+ dart analyze test
27
27
RETURN_VALUE=$( expr $RETURN_VALUE + $? )
28
28
29
29
start_phase " Starting API server"
@@ -34,7 +34,7 @@ sleep 3
34
34
35
35
36
36
start_phase " Testing"
37
- pub run test
37
+ dart pub run test
38
38
RETURN_VALUE=$( expr $RETURN_VALUE + $? )
39
39
40
40
start_phase " Killing API server"
Original file line number Diff line number Diff line change @@ -25,17 +25,6 @@ function check_env_variable {
25
25
fi
26
26
}
27
27
28
- function analyze_files {
29
- echo " Analyzing files '$1 '."
30
-
31
- " $DART_SDK /bin/dartanalyzer" --fatal-warnings " $@ "
32
- if [ $? -ne 0 ]; then
33
- error " Analyzer failed on file '$1 '."
34
- return 1
35
- fi
36
- return 0
37
- }
38
-
39
28
function test_file {
40
29
echo " Testing file '$1 '."
41
30
" $DART_SDK /bin/dart" --checked " $1 "
You can’t perform that action at this time.
0 commit comments