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
e3ad0345
Unverified
Commit
e3ad0345
authored
Jul 02, 2020
by
Christopher Fujino
Committed by
GitHub
Jul 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a timeout to dashing (#60723)
parent
3f4f9153
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
docs.sh
dev/bots/docs.sh
+14
-10
No files found.
dev/bots/docs.sh
View file @
e3ad0345
...
@@ -53,7 +53,11 @@ function create_docset() {
...
@@ -53,7 +53,11 @@ function create_docset() {
# show the end of it if there was a problem.
# show the end of it if there was a problem.
echo
"Building Flutter docset."
echo
"Building Flutter docset."
rm
-rf
flutter.docset
rm
-rf
flutter.docset
(
dashing build
--source
./doc
--config
./dashing.json
>
/tmp/dashing.log 2>&1
||
(
tail
-100
/tmp/dashing.log
;
false
))
&&
\
# If dashing gets stuck, Cirrus will time out the build after an hour, and we
# never get to see the logs. Thus, we time it out after 30 minutes to see the
# logs.
(
timeout
'30m'
dashing build
--source
./doc
--config
./dashing.json
>
/tmp/dashing.log 2>&1
||
\
(
echo
'Dashing failed! Tailing last 200 lines of log...'
;
tail
-200
/tmp/dashing.log
;
exit
1
))
&&
\
cp
./doc/flutter/static-assets/favicon.png ./flutter.docset/icon.png
&&
\
cp
./doc/flutter/static-assets/favicon.png ./flutter.docset/icon.png
&&
\
"
$DART
"
./dashing_postprocess.dart
&&
\
"
$DART
"
./dashing_postprocess.dart
&&
\
tar
cf flutter.docset.tar.gz
--use-compress-program
=
"gzip --best"
flutter.docset
tar
cf flutter.docset.tar.gz
--use-compress-program
=
"gzip --best"
flutter.docset
...
@@ -111,7 +115,7 @@ if [[ -d "$FLUTTER_PUB_CACHE" ]]; then
...
@@ -111,7 +115,7 @@ if [[ -d "$FLUTTER_PUB_CACHE" ]]; then
fi
fi
# Install and activate dartdoc.
# Install and activate dartdoc.
"
$PUB
"
global activate dartdoc 0.3
1.0
"
$PUB
"
global activate dartdoc 0.3
2.1
# This script generates a unified doc set, and creates
# This script generates a unified doc set, and creates
# a custom index.html, placing everything into dev/docs/doc.
# a custom index.html, placing everything into dev/docs/doc.
...
@@ -120,16 +124,16 @@ fi
...
@@ -120,16 +124,16 @@ fi
(
cd
"
$FLUTTER_ROOT
"
&&
"
$DART
"
"
$FLUTTER_ROOT
/dev/tools/dartdoc.dart"
)
(
cd
"
$FLUTTER_ROOT
"
&&
"
$DART
"
"
$FLUTTER_ROOT
/dev/tools/dartdoc.dart"
)
(
cd
"
$FLUTTER_ROOT
"
&&
"
$DART
"
"
$FLUTTER_ROOT
/dev/tools/java_and_objc_doc.dart"
)
(
cd
"
$FLUTTER_ROOT
"
&&
"
$DART
"
"
$FLUTTER_ROOT
/dev/tools/java_and_objc_doc.dart"
)
# Create offline doc archives.
(
cd
"
$FLUTTER_ROOT
/dev/docs"
;
create_offline_zip
)
(
cd
"
$FLUTTER_ROOT
/dev/docs"
;
create_docset
)
(
cd
"
$FLUTTER_ROOT
/dev/docs"
;
move_offline_into_place
)
# Ensure google webmaster tools can verify our site.
cp
"
$FLUTTER_ROOT
/dev/docs/google2ed1af765c529f57.html"
"
$FLUTTER_ROOT
/dev/docs/doc"
# Upload new API docs when running on Cirrus
# Upload new API docs when running on Cirrus
if
[[
-n
"
$CIRRUS_CI
"
&&
-z
"
$CIRRUS_PR
"
]]
;
then
if
[[
-n
"
$CIRRUS_CI
"
&&
-z
"
$CIRRUS_PR
"
]]
;
then
# Create offline doc archives.
(
cd
"
$FLUTTER_ROOT
/dev/docs"
;
create_offline_zip
)
(
cd
"
$FLUTTER_ROOT
/dev/docs"
;
create_docset
)
(
cd
"
$FLUTTER_ROOT
/dev/docs"
;
move_offline_into_place
)
# Ensure google webmaster tools can verify our site.
cp
"
$FLUTTER_ROOT
/dev/docs/google2ed1af765c529f57.html"
"
$FLUTTER_ROOT
/dev/docs/doc"
echo
"This is not a pull request; considering whether to upload docs... (branch=
$CIRRUS_BRANCH
)"
echo
"This is not a pull request; considering whether to upload docs... (branch=
$CIRRUS_BRANCH
)"
if
[[
"
$CIRRUS_BRANCH
"
==
"master"
]]
;
then
if
[[
"
$CIRRUS_BRANCH
"
==
"master"
]]
;
then
echo
"Updating
$CIRRUS_BRANCH
docs: https://master-api.flutter.dev/"
echo
"Updating
$CIRRUS_BRANCH
docs: https://master-api.flutter.dev/"
...
...
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