Skip to content

Commit 2069408

Browse files
authored
Make packages bot use different versions for angular for stable and dev (#1791)
1 parent 51f6fd3 commit 2069408

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tool/travis.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ elif [ "$DARTDOC_BOT" = "flutter" ]; then
2222
pub run grinder validate-flutter-docs
2323
elif [ "$DARTDOC_BOT" = "packages" ]; then
2424
echo "Running packages dartdoc bot"
25-
PACKAGE_NAME=angular PACKAGE_VERSION=">=5.0.0-beta" DARTDOC_PARAMS="--include=angular,angular.security" pub run grinder build-pub-package
25+
DART_VERSION=`dart --version 2>&1 | awk '{print $4}'`
26+
if [ ${DART_VERSION} != 2.0.0 ] ; then
27+
PACKAGE_NAME=angular PACKAGE_VERSION=">=5.1.0" DARTDOC_PARAMS="--include=angular,angular.security" pub run grinder build-pub-package
28+
else
29+
PACKAGE_NAME=angular PACKAGE_VERSION=">=5.0.0-beta <5.1.0" DARTDOC_PARAMS="--include=angular,angular.security" pub run grinder build-pub-package
30+
fi
2631
elif [ "$DARTDOC_BOT" = "sdk-analyzer" ]; then
2732
echo "Running main dartdoc bot against the SDK analyzer"
2833
DARTDOC_GRIND_STEP=buildbot-no-publish pub run grinder test-with-analyzer-sdk

0 commit comments

Comments
 (0)