- Clone the gecko-dev (git version of mozilla-central) repository. It is quite large so only clone the latest 100 revisions:
$ git clone --depth=100 https://github.com/mozilla/gecko-dev
$ cd gecko-dev
- Install dependencies needed to build Firefox:
$ ./mach bootstrap
- Create a file called
mozconfig
with the following contents:
# Automatically download and use already-compiled C++ components
ac_add_options --enable-artifact-builds
- Build Firefox:
$ ./mach build
- Place extension XPIs into
testing/profiles/common/extensions
- Run tests:
$ ./mach test
- Push to tryserver CI (requires access):
$ git commit -m"work in progress, testing on tryserver" .
# build debug+opt, desktop platforms, all perf tests, all unit tests
$ ./mach try -b do -p linux64,macosx64,win64 -t all -u all