levlaz
January 4, 2016, 11:00pm
1
The Latest version of Firefox fails to install due to missing libpango depdenencies that are not being resolved by apt. In order to install the latest version of Firefox in CircleCI you will need to add the following to your circle.yml
file:
dependencies:
override:
- sudo apt-get update && sudo apt-get install libpango1.0-0 && sudo apt-get install firefox
1 Like
To add, if you are just using firefox for testing like I am, something like this may work if you don’t need to install it:
dependencies:
pre:
# get Firefox Release (43.0b5)
- mkdir ../ff-release
- wget -O ff-release.tar.bz2 'https://archive.mozilla.org/pub/firefox/releases/43.0b5/linux-x86_64/en-US/firefox-43.0b5.tar.bz2' && tar xjf ff-release.tar.bz2:
pwd: ../ff-release
# get Firefox Beta
- mkdir ../ff-beta
- wget -O ff-beta.tar.bz2 'https://download.mozilla.org/?product=firefox-beta-latest&os=linux64&lang=en-US' && tar xjf ff-beta.tar.bz2:
pwd: ../ff-beta
# get Firefox Nightly
- mkdir ../ff-nightly
- wget -O ff-nightly.tar.bz2 'https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/firefox-45.0a1.en-US.linux-x86_64.tar.bz2' && tar xjf ff-nightly.tar.bz2:
pwd: ../ff-nightly
1 Like
Is there a way to get this cached? This works, but it takes quite a bit of time on each build.
levlaz
March 28, 2016, 2:09pm
4
Right now we do not cache apt packages. The best way to cache this would be to download the .deb somewhere into your home folder (which can be cached) and then install it with sudo dpkg -i $PACKAGE_NAME.deb
.
It’s not just the single deb, it pulls in some 15 dependencies.
levlaz
March 28, 2016, 8:39pm
6
Makes sense, you would need to pull those in as well. Without proper support for apt caching this is the only way for now.
Any chances of just having Firefox upgraded to 45?
Installing FF this way adds a full minute to my build process… not a big thing, but it’s a waste of Circle’s resources.
1 Like
levlaz
April 7, 2016, 1:45am
9
Yes this seems like the best solution.
@kimh can we do this on Trusty?
kimh
April 7, 2016, 1:53am
10
@retorquere so FF 45 and Chrome 48 works for you? I can update theses on Trusty image .
1 Like
levlaz
April 7, 2016, 1:54am
11
I think that would be awesome, this would knock out this one as well Update Chrome in container image
FF 45 works (although I’ve set up things so that 38 now also works). I only test on FF as I’m building a XUL based plugin.
Much appreciated!
1 Like
If i want to install specific version of firefox i.e. 47.0.1. How can i achieve that. Any help ?
matt-sm
October 20, 2016, 11:26pm
14
This is how Mozilla (who happen to use CricleCi) do it:
- pip install mozdownload mozinstall
- mozdownload --version latest --destination firefox.tar.bz2
- mozinstall firefox.tar.bz2
3 Likes
Point of note, this will install to ~/:project/firefox/firefox
instead of overwriting the binary at /usr/bin/firefox
so you will need to advise your test runner of the new path.
I got it to work by replacing the existing Firefox binary with a symlink:
sudo apt-get update
sudo apt-get install libpango1.0-0
sudo apt-get install firefox
sudo ln -sf /usr/lib/firefox/firefox /usr/bin/firefox
2 Likes
drazisil
Closed
June 25, 2017, 6:29pm
19
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.