flutter/travis/test.sh
Seth Ladd 7dd28659b2 Merge pull request #937 from flutter/sethladd-patch-1
Use a newer version of dartdoc
2015-12-15 13:21:12 -08:00

34 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
set -ex
export PATH="$PWD/bin:$PATH"
# analyze all the Dart code in the repo
flutter analyze --flutter-repo --no-current-directory --no-current-package --congratulate
# flutter package tests
flutter test --flutter-repo
(cd packages/cassowary; pub run test -j1)
# (cd packages/flutter_sprites; ) # No tests to run.
(cd packages/flutter_tools; pub run test -j1)
(cd packages/flx; pub run test -j1)
(cd packages/newton; pub run test -j1)
# (cd packages/playfair; ) # No tests to run.
# (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
(cd packages/flutter; ~/.pub-cache/bin/dartdoc --header=doc/styles.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 rsync -r -d packages/flutter/doc/api gs://docs.flutter.io/flutter
$GSUTIL -m -q rsync -r -d packages/flutter/doc/api gs://docs.domokit.org/flutter
fi
fi