Skip to content

Commit 5983455

Browse files
authored
Make publish test conditional on version (#2065)
* Revert "Remove author because pub complains about it. (#2064)" This reverts commit 88c82b3. * select whether to run publish test based on version * Disable for appveyor
1 parent 88c82b3 commit 5983455

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ install:
2323
build: off
2424

2525
test_script:
26-
- pub run grinder buildbot
26+
- pub run grinder buildbot-no-publish

pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: dartdoc
22
# Run `grind build` after updating.
33
version: 0.29.0
4+
author: Dart Team <misc@dartlang.org>
45
description: A documentation generator for Dart.
56
homepage: https://github.com/dart-lang/dartdoc
67
environment:

tool/travis.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ elif [ "$DARTDOC_BOT" = "sdk-analyzer" ]; then
4242
DARTDOC_GRIND_STEP=buildbot-no-publish pub run grinder test-with-analyzer-sdk
4343
else
4444
echo "Running main dartdoc bot"
45-
pub run grinder buildbot
45+
if echo "${DART_VERSION}" | grep -q dev ; then
46+
pub run grinder buildbot-no-publish
47+
else
48+
pub run grinder buildbot
49+
fi
4650
if [ -n "$COVERAGE_TOKEN" ] ; then
4751
coveralls-lcov --repo-token="${COVERAGE_TOKEN}" lcov.info
4852
fi

0 commit comments

Comments
 (0)