Revert "Revert "Stop Travis from uploading docs""

This patch again stops Traivs from uploading docs now that the new infra seems
to be better at it.

This reverts commit 196c881c5bb17dd554284a08b692c037c70c7908.
This commit is contained in:
Adam Barth 2016-02-12 12:32:21 -08:00
parent 0fdc8bf8c5
commit 6c81433500

View File

@ -17,31 +17,3 @@ flutter analyze --flutter-repo --no-current-directory --no-current-package --con
# (cd packages/updater; ) # No tests to run.
(cd examples/stocks; flutter test)
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
if [ "$TRAVIS_BRANCH" = "master" ]; then
pub global activate dartdoc 0.8.4
cat packages/flutter/doc/styles.html doc/_analytics.html > /tmp/_header.html
# TODO(eseidel): This should just call a helper script.
# If you add a package to this list, update doc/index.html to point to it.
(cd packages/flutter; ~/.pub-cache/bin/dartdoc --header=/tmp/_header.html)
(cd packages/playfair; ~/.pub-cache/bin/dartdoc --header=/tmp/_header.html)
(cd packages/newton; ~/.pub-cache/bin/dartdoc --header=/tmp/_header.html)
(cd packages/cassowary; ~/.pub-cache/bin/dartdoc --header=/tmp/_header.html)
(cd packages/flutter_test; ~/.pub-cache/bin/dartdoc --header=/tmp/_header.html)
(cd packages/flutter_sprites; ~/.pub-cache/bin/dartdoc --header=/tmp/_header.html)
GSUTIL=$HOME/google-cloud-sdk/bin/gsutil
GCLOUD=$HOME/google-cloud-sdk/bin/gcloud
$GCLOUD auth activate-service-account --key-file gcloud_key_file.json
$GSUTIL -m -q cp doc/index.html gs://docs.flutter.io/index.html
$GSUTIL -m -q rsync -r -d packages/flutter/doc/api gs://docs.flutter.io/flutter
$GSUTIL -m -q rsync -r -d packages/playfair/doc/api gs://docs.flutter.io/playfair
$GSUTIL -m -q rsync -r -d packages/newton/doc/api gs://docs.flutter.io/newton
$GSUTIL -m -q rsync -r -d packages/cassowary/doc/api gs://docs.flutter.io/cassowary
$GSUTIL -m -q rsync -r -d packages/flutter_test/doc/api gs://docs.flutter.io/flutter_test
$GSUTIL -m -q rsync -r -d packages/flutter_sprites/doc/api gs://docs.flutter.io/flutter_sprites
fi
fi