mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
ci - breakout firefox helpers into scripts
This commit is contained in:
parent
6d4e4b8157
commit
1e6ff597e2
@ -121,9 +121,7 @@ jobs:
|
|||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
name: Download Firefox
|
name: Download Firefox
|
||||||
command: >
|
command: ./.circleci/scripts/firefox-download.sh
|
||||||
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
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: dependency-cache-firefox-{{ .Revision }}
|
key: dependency-cache-firefox-{{ .Revision }}
|
||||||
paths:
|
paths:
|
||||||
@ -229,11 +227,7 @@ jobs:
|
|||||||
key: dependency-cache-firefox-{{ .Revision }}
|
key: dependency-cache-firefox-{{ .Revision }}
|
||||||
- run:
|
- run:
|
||||||
name: Install firefox
|
name: Install firefox
|
||||||
command: >
|
command: ./.circleci/scripts/firefox-install.sh
|
||||||
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
|
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: dependency-cache-{{ .Revision }}
|
key: dependency-cache-{{ .Revision }}
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
@ -270,11 +264,7 @@ jobs:
|
|||||||
key: dependency-cache-firefox-{{ .Revision }}
|
key: dependency-cache-firefox-{{ .Revision }}
|
||||||
- run:
|
- run:
|
||||||
name: Install firefox
|
name: Install firefox
|
||||||
command: >
|
command: ./.circleci/scripts/firefox-install.sh
|
||||||
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
|
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: dependency-cache-{{ .Revision }}
|
key: dependency-cache-{{ .Revision }}
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
@ -375,11 +365,7 @@ jobs:
|
|||||||
key: dependency-cache-firefox-{{ .Revision }}
|
key: dependency-cache-firefox-{{ .Revision }}
|
||||||
- run:
|
- run:
|
||||||
name: Install firefox
|
name: Install firefox
|
||||||
command: >
|
command: ./.circleci/scripts/firefox-install.sh
|
||||||
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
|
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: dependency-cache-{{ .Revision }}
|
key: dependency-cache-{{ .Revision }}
|
||||||
- run:
|
- run:
|
||||||
@ -422,11 +408,7 @@ jobs:
|
|||||||
key: dependency-cache-firefox-{{ .Revision }}
|
key: dependency-cache-firefox-{{ .Revision }}
|
||||||
- run:
|
- run:
|
||||||
name: Install firefox
|
name: Install firefox
|
||||||
command: >
|
command: ./.circleci/scripts/firefox-install.sh
|
||||||
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
|
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: dependency-cache-{{ .Revision }}
|
key: dependency-cache-{{ .Revision }}
|
||||||
- run:
|
- run:
|
||||||
|
6
.circleci/scripts/firefox-download.sh
Executable file
6
.circleci/scripts/firefox-download.sh
Executable file
@ -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"
|
8
.circleci/scripts/firefox-install.sh
Executable file
8
.circleci/scripts/firefox-install.sh
Executable file
@ -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."
|
Loading…
x
Reference in New Issue
Block a user