File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,12 @@ elif [ "$DARTDOC_BOT" = "flutter" ]; then
22
22
pub run grinder validate-flutter-docs
23
23
elif [ " $DARTDOC_BOT " = " packages" ]; then
24
24
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
26
31
elif [ " $DARTDOC_BOT " = " sdk-analyzer" ]; then
27
32
echo " Running main dartdoc bot against the SDK analyzer"
28
33
DARTDOC_GRIND_STEP=buildbot-no-publish pub run grinder test-with-analyzer-sdk
You can’t perform that action at this time.
0 commit comments