Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Unified Diff: packages/when/drone.sh

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « packages/when/README.md ('k') | packages/when/example/foo.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/when/drone.sh
diff --git a/packages/when/drone.sh b/packages/when/drone.sh
new file mode 100755
index 0000000000000000000000000000000000000000..6ed29b2d994fb1de44f62dbfd7fab964d2b1bd7a
--- /dev/null
+++ b/packages/when/drone.sh
@@ -0,0 +1,21 @@
+#!/usr/bin/env bash
+set -o xtrace
+
+pub get
+dart test/test_when.dart
+
+# TODO: dartanalyzer on all libraries
+
+# Install dart_coveralls; gather and send coverage data.
+if [ "$REPO_TOKEN" ]; then
+ export PATH="$PATH":"~/.pub-cache/bin"
+
+ echo
+ echo "Installing dart_coveralls"
+ pub global activate dart_coveralls
+
+ echo
+ echo "Running code coverage report"
+ # --debug for verbose logging
+ pub global run dart_coveralls report --token $REPO_TOKEN --retry 3 test/test_when.dart
+fi
« no previous file with comments | « packages/when/README.md ('k') | packages/when/example/foo.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698