User:Mjzffr/New Contributors: Difference between revisions

Jump to navigation Jump to search
m
Simplify point about artifact build
m (Simplify point about artifact build)
Line 12: Line 12:


# Follow this tutorial to get a copy of Firefox source code and build it: [http://areweeveryoneyet.org/onramp/desktop.html http://areweeveryoneyet.org/onramp/desktop.html]
# Follow this tutorial to get a copy of Firefox source code and build it: [http://areweeveryoneyet.org/onramp/desktop.html http://areweeveryoneyet.org/onramp/desktop.html]
#* If you're asked to run a 'bootstrap' script, choose the option "Firefox for Desktop Artifact Mode". OR, if you can't see such an option then, before you run <code>./mach build</code> for the first time, you can make the build process take a lot less time and space if you turn on "Artifact Builds". To do so, make a mozconfig file in your source checkout according to these instructions: [https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Artifact_builds https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Artifact_builds]
#* If you're asked to run a 'bootstrap' script, choose the option "Firefox for Desktop Artifact Mode". This significantly reduces the time it takes to build Firefox on your machine (from 30+ minutes to just 1-2 minutes).  
# Check if you can run any marionette tests: Use [https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/mach mach] to run [https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette Marionette] unit tests against the Firefox binary you just built in the previous step: <code>./mach marionette-test</code> -- see [https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/Running_Tests Running Marionette Tests] for details. If you see tests running, that's good enough: '''you don't have to run all the tests right now''', that takes a long time.
# Check if you can run any marionette tests: Use [https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/mach mach] to run [https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette Marionette] unit tests against the Firefox binary you just built in the previous step: <code>./mach marionette-test</code> -- see [https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/Running_Tests Running Marionette Tests] for details. If you see tests running, that's good enough: '''you don't have to run all the tests right now''', that takes a long time.
#* Fun fact: the set of tests that you just ran on your machine is triggered automatically for every changeset in the Mozilla source tree! For example, here are the [https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&filter-job_type_symbol=Mn latest results on Treeherder]
#* Fun fact: the set of tests that you just ran on your machine is triggered automatically for every changeset in the Mozilla source tree! For example, here are the [https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&filter-job_type_symbol=Mn latest results on Treeherder]
Confirmed users
378

edits

Navigation menu