Actions

Difference between revisions of "Developer Area/Developer Tools"

From Mahara Wiki

< Developer Area
Line 67: Line 67:
 
# click the "Settings" in the top right corner of the page
 
# click the "Settings" in the top right corner of the page
 
# add these details:
 
# add these details:
#* username (hint: use the one you use on mahara.org, '''all lowercase''')
+
#* username (hint: '''All lowercase'''. It's easiest if this matches your username on your local machine.)
 
#* full name
 
#* full name
 
#* email address(es)
 
#* email address(es)
Line 76: Line 76:
 
===Mahara.org===
 
===Mahara.org===
  
While not required for development purposes, it's also recommended that you sign up for an account at mahara.org, in order to participate in the community forums there.
+
While not strictly required for development purposes, it's also recommended that you sign up for an account at mahara.org, in order to participate in the community forums there.
  
 
===wiki.mahara.org===
 
===wiki.mahara.org===
  
 
If you wish to edit the Mahara wiki, you can log in using your username and password from your mahara.org account.
 
If you wish to edit the Mahara wiki, you can log in using your username and password from your mahara.org account.

Revision as of 15:52, 29 December 2014

Setting up your development tools

NOTE: Before you get started, you need to decide on which email address you will be using while developing on Mahara. This will make sure all the different tools know who you are when they are sharing information about the project.

Locally installed tools

These are tools that need to be installed locally on the development machine.

Git Version Control System

If you plan to submit code changes will need to set up a local git repository, and you'll need the git software for this.

If you are running Ubuntu, this is done by:

sudo apt-get install git

On Debian:

sudo apt-get install git-core

On Fedora, you will need to (with root privileges) do:

yum install git-core

(if this didn't work, check to see if the extras repository is enabled. Though this could be a sign your Fedora is a really old version and you might need to update.

On windows, you should download an installer from the git website.

Once you have git installed, please set your name locally with:

git config --global user.name "FirstName LastName"

And you will also need to set your email. This should be the same email that is in your user profile for all the web tools.

git config --global user.email "[email protected]"

xmllint

In order to use the Mahara project's gerrit convenience scripts, you'll need to install xmllint. In Ubuntu or debian, the process should be:

sudo apt-get install libxml2-utils

Secure Shell (SSH) Key

You'll need to create an SSH key pair, so that you can later upload the public key to reviews.mahara.org. There are several excellent guides to this process on the Internet, including the one from GitHub.

Web based tools

Mahara development uses several web-based tools for workflow. You will need to sign up at each of them and give them certain information so that your work is attributed to you throughout.

Launchpad.net

The Mahara bug tracker is on launchpad.net.

This means that to use the bug tracking workflow you will need to sign up for a launchpad.net account. If you already have a launchpad account, you can skip ahead to the next step.

Gerrit code review (reviews.mahara.org)

All code changes to Mahara go through a code review process. This is hosted at reviews.mahara.org and uses the launchpad openid for signin.

To create your account on the Mahara code review system (which uses Gerrit Code Review):

  1. install the CAcert root certificate in your browser
  2. uninstall the Cookie Pie Firefox extension if you have it. It will prevent you from logging in.
  3. click the "Sign In" in the top right corner of the page
  4. enter your preferred OpenID (we recommend using Launchpad: https://launchpad.net/~username)
  5. click the "Settings" in the top right corner of the page
  6. add these details:
    • username (hint: All lowercase. It's easiest if this matches your username on your local machine.)
    • full name
    • email address(es)
    • ssh public key (hint: the one we just told you to create

Previous documentation mentioned the 'mahara reviewers' group. You do not need direct commit or to be part of the 'mahara reviewers' group to send your patchsets through the gerrit system.

Mahara.org

While not strictly required for development purposes, it's also recommended that you sign up for an account at mahara.org, in order to participate in the community forums there.

wiki.mahara.org

If you wish to edit the Mahara wiki, you can log in using your username and password from your mahara.org account.