diff options
author | kumavis <aaron@kumavis.me> | 2018-05-29 00:29:50 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-06-02 03:16:14 +0800 |
commit | 1e6ff597e2d8d3b11e27fbc8b41bb2a3b4edf0d2 (patch) | |
tree | e83c9b18b6ebf4ab8fb73896b83df63eefbd95d4 | |
parent | 6d4e4b8157419523fd48a276574c32bb60c13fe2 (diff) | |
download | tangerine-wallet-browser-1e6ff597e2d8d3b11e27fbc8b41bb2a3b4edf0d2.tar tangerine-wallet-browser-1e6ff597e2d8d3b11e27fbc8b41bb2a3b4edf0d2.tar.gz tangerine-wallet-browser-1e6ff597e2d8d3b11e27fbc8b41bb2a3b4edf0d2.tar.bz2 tangerine-wallet-browser-1e6ff597e2d8d3b11e27fbc8b41bb2a3b4edf0d2.tar.lz tangerine-wallet-browser-1e6ff597e2d8d3b11e27fbc8b41bb2a3b4edf0d2.tar.xz tangerine-wallet-browser-1e6ff597e2d8d3b11e27fbc8b41bb2a3b4edf0d2.tar.zst tangerine-wallet-browser-1e6ff597e2d8d3b11e27fbc8b41bb2a3b4edf0d2.zip |
ci - breakout firefox helpers into scripts
-rw-r--r-- | .circleci/config.yml | 28 | ||||
-rwxr-xr-x | .circleci/scripts/firefox-download.sh | 6 | ||||
-rwxr-xr-x | .circleci/scripts/firefox-install.sh | 8 |
3 files changed, 19 insertions, 23 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index bff04e5e0..bc40c9a7c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -121,9 +121,7 @@ jobs: - checkout - run: name: Download Firefox - command: > - 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 + command: ./.circleci/scripts/firefox-download.sh - save_cache: key: dependency-cache-firefox-{{ .Revision }} paths: @@ -229,11 +227,7 @@ jobs: key: dependency-cache-firefox-{{ .Revision }} - run: name: Install firefox - command: > - sudo rm -r /opt/firefox - && sudo mv firefox /opt/firefox58 - && sudo mv /usr/bin/firefox /usr/bin/firefox-old - && sudo ln -s /opt/firefox58/firefox /usr/bin/firefox + command: ./.circleci/scripts/firefox-install.sh - restore_cache: key: dependency-cache-{{ .Revision }} - restore_cache: @@ -270,11 +264,7 @@ jobs: key: dependency-cache-firefox-{{ .Revision }} - run: name: Install firefox - command: > - sudo rm -r /opt/firefox - && sudo mv firefox /opt/firefox58 - && sudo mv /usr/bin/firefox /usr/bin/firefox-old - && sudo ln -s /opt/firefox58/firefox /usr/bin/firefox + command: ./.circleci/scripts/firefox-install.sh - restore_cache: key: dependency-cache-{{ .Revision }} - restore_cache: @@ -375,11 +365,7 @@ jobs: key: dependency-cache-firefox-{{ .Revision }} - run: name: Install firefox - command: > - sudo rm -r /opt/firefox - && sudo mv firefox /opt/firefox58 - && sudo mv /usr/bin/firefox /usr/bin/firefox-old - && sudo ln -s /opt/firefox58/firefox /usr/bin/firefox + command: ./.circleci/scripts/firefox-install.sh - restore_cache: key: dependency-cache-{{ .Revision }} - run: @@ -422,11 +408,7 @@ jobs: key: dependency-cache-firefox-{{ .Revision }} - run: name: Install firefox - command: > - sudo rm -r /opt/firefox - && sudo mv firefox /opt/firefox58 - && sudo mv /usr/bin/firefox /usr/bin/firefox-old - && sudo ln -s /opt/firefox58/firefox /usr/bin/firefox + command: ./.circleci/scripts/firefox-install.sh - restore_cache: key: dependency-cache-{{ .Revision }} - run: diff --git a/.circleci/scripts/firefox-download.sh b/.circleci/scripts/firefox-download.sh new file mode 100755 index 000000000..c63e8c3df --- /dev/null +++ b/.circleci/scripts/firefox-download.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +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" diff --git a/.circleci/scripts/firefox-install.sh b/.circleci/scripts/firefox-install.sh new file mode 100755 index 000000000..589bcbbb5 --- /dev/null +++ b/.circleci/scripts/firefox-install.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +echo "Installing firefox..." +sudo rm -r /opt/firefox +sudo mv firefox /opt/firefox58 +sudo mv /usr/bin/firefox /usr/bin/firefox-old +sudo ln -s /opt/firefox58/firefox /usr/bin/firefox +echo "Firefox installed." |