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

Commit 9e784df

Browse files
committed
chore(travis): Fix Travis fetch for Dartium to handle redirects
1 parent 241ed50 commit 9e784df

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

scripts/travis/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ set -e
44

55
sh -e /etc/init.d/xvfb start
66

7-
DARTIUM_ZIP=http://storage.googleapis.com/dart-archive/channels/$CHANNEL/raw/latest/dartium/dartium-linux-x64-release.zip
7+
DARTIUM_ZIP=http://storage.googleapis.com/dart-archive/channels/$CHANNEL/release/latest/dartium/dartium-linux-x64-release.zip
88
FF_TAR=http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$FIREFOX_VERSION/linux-x86_64/en-US/firefox-$FIREFOX_VERSION.tar.bz2
99
CHROME_DEB=https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
1010

1111
shopt -s nocasematch
1212

1313
if [[ $BROWSERS =~ "dartium" ]]; then
1414
echo "Installing Dartium from $DARTIUM_ZIP"
15-
curl $DARTIUM_ZIP > dartium.zip
15+
curl -L $DARTIUM_ZIP > dartium.zip
1616
unzip dartium.zip > /dev/null
1717
rm -rf dartium
1818
rm dartium.zip

scripts/travis/setup.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ echo Fetch Dart channel: $CHANNEL
88
DART_SDK_ZIP=dartsdk-linux-x64-release.zip
99

1010
echo http://storage.googleapis.com/dart-archive/channels/$CHANNEL/release/latest/sdk/$DART_SDK_ZIP
11-
curl http://storage.googleapis.com/dart-archive/channels/$CHANNEL/release/latest/sdk/$DART_SDK_ZIP > $DART_SDK_ZIP
11+
curl -L http://storage.googleapis.com/dart-archive/channels/$CHANNEL/release/latest/sdk
12+
/$DART_SDK_ZIP > $DART_SDK_ZIP
1213
echo Fetched new dart version $(unzip -p $DART_SDK_ZIP dart-sdk/version)
1314
rm -rf dart-sdk
1415
unzip $DART_SDK_ZIP > /dev/null

0 commit comments

Comments
 (0)