Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: runtests.sh

Issue 22528003: update examples on homepage (Closed) Base URL: https://github.com/dart-lang/dartlang.org.git@master
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/site/index.html » ('j') | src/tests/site/code/futures.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 shopt -s nullglob 3 shopt -s nullglob
4 4
5 EXITSTATUS=0 5 EXITSTATUS=0
6 PASSING=0 6 PASSING=0
7 WARNINGS=0 7 WARNINGS=0
8 FAILURES=0 8 FAILURES=0
9 9
10 ##### 10 #####
11 # Type Analysis 11 # Type Analysis
12 12
13 ANA="dartanalyzer" 13 ANA="dartanalyzer"
14 14
15 echo 15 echo
16 echo "Type Analysis, running dartanalyzer..." 16 echo "Type Analysis, running dartanalyzer..."
17 17
18 for dir in src/site/tools/*/code/ src/site/articles/*/code/ 18 for dir in src/tests/site/code/ src/tests/site/*/code/ src/site/tools/*/code/ sr c/site/articles/*/code/
19 do 19 do
20 # Run pub if there is a pubspec in this code directory. 20 # Run pub if there is a pubspec in this code directory.
21 if [ -a "$dir/pubspec.yaml" ]; then 21 if [ -a "$dir/pubspec.yaml" ]; then
22 pub_result=`pushd $dir && pub install && popd` 22 pub_result=`pushd $dir && pub install && popd`
23 cmd="$ANA --package-root $dir/packages" 23 cmd="$ANA --package-root $dir/packages"
24 else 24 else
25 cmd="$ANA" 25 cmd="$ANA"
26 fi 26 fi
27 27
28 # Loop through each Dart file in this code directory. 28 # Loop through each Dart file in this code directory.
(...skipping 26 matching lines...) Expand all
55 done 55 done
56 56
57 echo 57 echo
58 echo "####################################################" 58 echo "####################################################"
59 echo "PASSING = $PASSING" 59 echo "PASSING = $PASSING"
60 echo "WARNINGS = $WARNINGS" 60 echo "WARNINGS = $WARNINGS"
61 echo "FAILURES = $FAILURES" 61 echo "FAILURES = $FAILURES"
62 echo "####################################################" 62 echo "####################################################"
63 echo 63 echo
64 exit $EXITSTATUS 64 exit $EXITSTATUS
OLDNEW
« no previous file with comments | « no previous file | src/site/index.html » ('j') | src/tests/site/code/futures.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698