Allow firefox binary to be cached

feature/default_network_editable
Bruno Barbieri 6 years ago committed by GitHub
parent 5b58c2acb4
commit 0af1702a3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      .circleci/scripts/firefox-download.sh

@ -1,6 +1,13 @@
#!/usr/bin/env bash
FIREFOX_BINARY="firefox-58.0.tar.bz2"
echo "Checking if firefox was already downloaded"
if [ -e $FIREFOX_BINARY ]
then
echo "$FIREFOX_BINARY found. No need to download"
else
echo "Downloading firefox..."
wget "https://ftp.mozilla.org/pub/firefox/releases/58.0/linux-x86_64/en-US/$FIREFOX_BINARY" \
&& tar xjf "$FIREFOX_BINARY"
echo "firefox download complete"
fi
echo "Downloading firefox..."
wget https://ftp.mozilla.org/pub/firefox/releases/58.0/linux-x86_64/en-US/firefox-58.0.tar.bz2 \
&& tar xjf firefox-58.0.tar.bz2
echo "firefox download complete"

Loading…
Cancel
Save