File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 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
2222 pub run grinder validate-flutter-docs
2323elif [ " $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
2631elif [ " $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
You can’t perform that action at this time.
0 commit comments