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
99457c92
Commit
99457c92
authored
Jul 19, 2018
by
Tian Lun Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add build test for Flutter codelabs
parent
d9ee971e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
1 deletion
+49
-1
.travis.yml
.travis.yml
+1
-0
flutter_build_test.sh
dev/bots/flutter_build_test.sh
+43
-0
travis_script.sh
dev/bots/travis_script.sh
+5
-1
No files found.
.travis.yml
View file @
99457c92
...
...
@@ -8,6 +8,7 @@ env:
-
SHARD=tests
-
SHARD=docs
-
SHARD=build_and_deploy_gallery
-
SHARD=flutter_build_test
matrix
:
exclude
:
-
os
:
osx
...
...
dev/bots/flutter_build_test.sh
0 → 100755
View file @
99457c92
#!/bin/bash
readonly
SCRIPTS_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
readonly
ROOT_DIR
=
"
$SCRIPTS_DIR
/.."
function
is_expected_failure
()
{
# A test target was specified with the 'build' command.
grep
--quiet
"is not configured for Running"
"
$1
"
}
# Navigate to codelab and attempt to build 104-complete
echo
"git clone https://github.com/material-components/material-components-flutter-codelabs.git"
git clone https://github.com/material-components/material-components-flutter-codelabs.git
echo
"cd material-components-flutter-codelabs/mdc_100_series/"
cd
material-components-flutter-codelabs/mdc_100_series/
echo
"git checkout 104-complete"
git checkout 104-complete
log_file
=
"build_log_for_104_complete.txt"
build_command
=
"flutter build bundle"
all_builds_ok
=
1
echo
"
$build_command
"
$build_command
2>&1 |
tee
"
$log_file
"
if
[
${
PIPESTATUS
[0]
}
-eq
0
]
||
is_expected_failure
"
$log_file
"
;
then
rm
"
$log_file
"
else
all_builds_ok
=
0
echo
echo
"Log left in
$log_file
."
echo
fi
# If any build failed, exit with a failure exit status so continuous integration
# tools can react appropriately.
if
[
"
$all_builds_ok
"
-eq
1
]
;
then
exit
0
else
exit
1
fi
dev/bots/travis_script.sh
View file @
99457c92
...
...
@@ -59,5 +59,9 @@ elif [ "$SHARD" = "docs" ]; then
./dev/bots/docs.sh
fi
else
dart ./dev/bots/test.dart
if
[
"
$SHARD
"
=
"flutter_build_test"
]
;
then
./dev/bots/flutter_build_test.sh
else
dart ./dev/bots/test.dart
fi
fi
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