Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 047a735

Browse files
committed
chore(travis): temporary workaround for issue 1350
Temporarily use Dart SDK 1.6.0-dev.7.0 (instead of 1.6.0-dev.8.0) to work around issue #1350 / dartbug 20500. Closes #1353
1 parent 3d626fb commit 047a735

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

scripts/travis/setup.sh

+20-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,26 @@ echo Fetch Dart channel: $CHANNEL
77

88
DART_SDK_ZIP=dartsdk-linux-x64-release.zip
99

10-
echo http://storage.googleapis.com/dart-archive/channels/$CHANNEL/release/latest/sdk/$DART_SDK_ZIP
11-
curl -L http://storage.googleapis.com/dart-archive/channels/$CHANNEL/release/latest/sdk/$DART_SDK_ZIP > $DART_SDK_ZIP
10+
# TODO(chirayu): Remove this once issue 1350 is fixed.
11+
SVN_REVISION=latest
12+
if [[ "$CHANNEL" == "dev" ]]; then
13+
issue_1350_state=$(curl 'https://api.github.com/repos/angular/angular.dart/issues/1020' | python -c \
14+
'import sys, json; print(json.loads(sys.stdin.read())["state"])')
15+
if [[ "$issue_1350_state" == "open" ]]; then
16+
# Is there a newer dev SDK?
17+
latest_version=$(curl 'https://storage.googleapis.com/dart-archive/channels/dev/release/latest/VERSION' | python -c \
18+
'import sys, json; print(json.loads(sys.stdin.read())["version"])')
19+
if [[ "$latest_version" == "1.6.0-dev.8.0" ]]; then
20+
# Use prior working version (1.6.0-dev.7.0)
21+
SVN_REVISION=38831
22+
fi
23+
fi
24+
fi
25+
26+
URL=https://storage.googleapis.com/dart-archive/channels/$CHANNEL/release/$SVN_REVISION/sdk/$DART_SDK_ZIP
27+
echo $URL
28+
curl -L -O $URL
29+
1230
echo Fetched new dart version $(unzip -p $DART_SDK_ZIP dart-sdk/version)
1331
rm -rf dart-sdk
1432
unzip $DART_SDK_ZIP > /dev/null

0 commit comments

Comments
 (0)