Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
84bdb326
Commit
84bdb326
authored
Jun 22, 2016
by
Todd Volkert
Committed by
GitHub
Jun 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev/bots/test.sh += robustness (#4682)
parent
bf740cf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
test.sh
dev/bots/test.sh
+13
-6
No files found.
dev/bots/test.sh
View file @
84bdb326
#!/bin/bash
set
-ex
export
PATH
=
"
$PWD
/bin:
$PWD
/bin/cache/dart-sdk/bin:
$PATH
"
die
()
{
trap
detect_error_on_exit EXIT HUP INT QUIT TERM
detect_error_on_exit
()
{
exit_code
=
$?
set
+x
echo
"Error: script exited early due to error"
exit
1
if
[[
$exit_code
-ne
0
]]
;
then
echo
"━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo
"Error: script exited early due to error (
$exit_code
)"
echo
"━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
fi
}
set
-ex
# analyze all the Dart code in the repo
flutter analyze
--flutter-repo
# verify that the tests actually return failure on failure and success on success
(
cd
dev/automated_tests
;
!
flutter
test
test_smoke_test/fail_test.dart
>
/dev/null
)
||
die
(
cd
dev/automated_tests
;
flutter
test
test_smoke_test/pass_test.dart
>
/dev/null
)
||
die
(
cd
dev/automated_tests
;
!
flutter
test
test_smoke_test/fail_test.dart
>
/dev/null
)
(
cd
dev/automated_tests
;
flutter
test
test_smoke_test/pass_test.dart
>
/dev/null
)
# run tests
(
cd
packages/flutter
;
flutter
test
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment