Make publish test conditional on version (#2065)

* Revert "Remove author because pub complains about it. (#2064)"

This reverts commit 88c82b391486aa1ac4fa54975ab421b98b0bc0f2.

* select whether to run publish test based on version

* Disable for appveyor
diff --git a/appveyor.yml b/appveyor.yml
index ef3b203..1b49bf5 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -23,4 +23,4 @@
 build: off
 
 test_script:
-  - pub run grinder buildbot
+  - pub run grinder buildbot-no-publish
diff --git a/pubspec.yaml b/pubspec.yaml
index 97e0b63..b3f85cd 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,6 +1,7 @@
 name: dartdoc
 # Run `grind build` after updating.
 version: 0.29.0
+author: Dart Team <misc@dartlang.org>
 description: A documentation generator for Dart.
 homepage: https://github.com/dart-lang/dartdoc
 environment:
diff --git a/tool/travis.sh b/tool/travis.sh
index cb4fe53..ee67b9e 100755
--- a/tool/travis.sh
+++ b/tool/travis.sh
@@ -42,7 +42,11 @@
   DARTDOC_GRIND_STEP=buildbot-no-publish pub run grinder test-with-analyzer-sdk
 else
   echo "Running main dartdoc bot"
-  pub run grinder buildbot
+  if echo "${DART_VERSION}" | grep -q dev ; then
+    pub run grinder buildbot-no-publish
+  else
+    pub run grinder buildbot
+  fi
   if [ -n "$COVERAGE_TOKEN" ] ; then
     coveralls-lcov --repo-token="${COVERAGE_TOKEN}" lcov.info
   fi