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

Side by Side Diff: pkg/appengine/tool/utils.sh

Issue 804973002: Add appengine/gcloud/mustache dependencies. (Closed) Base URL: git@github.com:dart-lang/pub-dartlang-dart.git@master
Patch Set: Added AUTHORS/LICENSE/PATENTS files Created 6 years 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 | « pkg/appengine/tool/run_tests.sh ('k') | pkg/gcloud/.gitignore » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/bash
2
3 function start_phase {
4 echo "==============================================="
5 echo "= Phase: $1"
6 echo "==============================================="
7 }
8
9 function error {
10 echo "==============================================="
11 echo "= Error: $1"
12 echo "==============================================="
13 }
14
15 function die {
16 echo "$1"
17 exit 1
18 }
19
20 function check_env_variable {
21 NAME="$1"
22 env | grep "$NAME" &> /dev/null
23 if [ $? -ne 0 ]; then
24 die "Couldn't find environment variable '$NAME'!"
25 fi
26 }
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 function test_file {
40 echo "Testing file '$1'."
41 "$DART_SDK/bin/dart" --checked "$1"
42 if [ $? -ne 0 ]; then
43 cd ..
44 error "Running tests in '$1' failed."
45 return 1
46 fi
47 cd ..
48 return 0
49 }
50
OLDNEW
« no previous file with comments | « pkg/appengine/tool/run_tests.sh ('k') | pkg/gcloud/.gitignore » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698