Actions

Accessing the source code: Difference between revisions

From LimeSurvey Manual

(Marked this version for translation)
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages /> <translate>
<!--T:1-->
__TOC__
__TOC__


=General= <!--T:2-->
=General=


<!--T:3-->
Until recently we used Subversion as versioning control system but now have [[Switch from Subversion to Git|moved to Git.]]
Until recently we used Subversion as versioning control system but now have [[Switch from Subversion to Git|moved to Git.]]


=Accessing the LimeSurvey source code= <!--T:4-->
=Accessing the LimeSurvey source code=


<!--T:5-->
Always be aware that most of the LimeSurvey Source code is '''bleeding edge'''. Do not use it for production purposes (except fo the master branch!
Always be aware that most of the LimeSurvey Source code is '''bleeding edge'''. Do not use it for production purposes (except fo the master branch!


<!--T:6-->
As for many other free software projects only community support is available.
As for many other free software projects only community support is available.


<!--T:7-->
Access the LimeSurvey source code with a Subversion client for your operating system.
Access the LimeSurvey source code with a Subversion client for your operating system.
*For Windows we recommend: [http://www.syntevo.com/smartgit/download.html SmartGit] because it is very easy to use.
*For Windows we recommend: [http://www.syntevo.com/smartgit/download.html SmartGit] because it is very easy to use.
*For Linux & Mac we recommend: [http://git-scm.com/ Git]. Commandline , or use git gui, very easy too.
*For Linux & Mac we recommend: [http://git-scm.com/ Git]. Commandline , or use git gui, very easy too.


==Step-by-Step How-To (Windows)== <!--T:8-->
==Step-by-Step How-To (Windows)==
# Create a [https://github.com/ GitHub] account.
# Create a [https://github.com/ GitHub] account.
# Download and install Git for Windows from [http://code.google.com/p/msysgit/downloads/list]. Make sure that during install when asked for adding the Git path to your system path that you choose the "Run Git from the Windows Command Prompt" option. For further help see [http://help.github.com/win-set-up-git/ Set Up Git]
# Download and install Git for Windows from [http://code.google.com/p/msysgit/downloads/list]. Make sure that during install when asked for adding the Git path to your system path that you choose the "Run Git from the Windows Command Prompt" option. For further help see [http://help.github.com/win-set-up-git/ Set Up Git]
Line 32: Line 25:
# That's it.
# That's it.


==Step-by-Step How-To (Linux)== <!--T:9-->
==Step-by-Step How-To (Linux)==


=== Read-only mode=== <!--T:10-->
=== Read-only mode===
# Install via yum/apt/yahourt/... git and git-core
# Install via yum/apt/yahourt/... git and git-core
# Clone LimeSurvey in ReadOnly mode : <syntaxhighlight lang="bash" enclose="div">git clone git://github.com/LimeSurvey/LimeSurvey.git</syntaxhighlight>
# Clone LimeSurvey in ReadOnly mode : <syntaxhighlight lang="bash" >git clone git://github.com/LimeSurvey/LimeSurvey.git</syntaxhighlight>
# By default you should see the 'master' branch in the current directory
# By default you should see the 'master' branch in the current directory
# To set to dev (Yii branch actually)<syntaxhighlight lang="bash" enclose="div">cd LimeSurvey
# To set to dev (Yii branch actually)<syntaxhighlight lang="bash" >cd LimeSurvey


<!--T:11-->
git checkout Yii</syntaxhighlight>
git checkout Yii</syntaxhighlight>
# To get the update from LimeSurvey:<syntaxhighlight lang="bash" enclose="div">cd LimeSurvey
# To get the update from LimeSurvey:<syntaxhighlight lang="bash" >cd LimeSurvey


<!--T:12-->
git pull</syntaxhighlight>
git pull</syntaxhighlight>


=== Start your own branch ( Fork )=== <!--T:13-->
=== Start your own branch ( Fork )===
# See the complete instrtuction in GitHub : http://help.github.com/fork-a-repo/
# See the complete instrtuction in GitHub : http://help.github.com/fork-a-repo/


<!--T:14-->
Please add instructions for other OSs or complete the existing ones.
Please add instructions for other OSs or complete the existing ones.


=Available branches= <!--T:15-->
=Available branches=


<!--T:16-->
These are the available GitHub branches right now:
These are the available GitHub branches right now:
*master - This is always the current stable (plus) version including any fixes not yet released.
*master - This is always the current stable (plus) version including any fixes not yet released.
*Dev - This is the Limesurvey (2.x) development branch which includes features currently in development
*192 - (might be depracted later) Latest stable 1.92 version (development stopped, Oct. 2012)
*original_art and original_art 2: These are the SVG files for almost all icons the stable and Yii version.
*original_art and original_art 2: These are the SVG files for almost all icons the stable and Yii version.
*other_scripts, server_scripts, translation status: These are scripts being used in limesurvey.org or for new releases. We will merge these to a single 'server-scripts' branch soon.
*other_scripts, server_scripts, translation status: These are scripts being used in limesurvey.org or for new releases. We will merge these to a single 'server-scripts' branch soon.


=Further documentation= <!--T:17-->
=Further documentation=


<!--T:18-->
Please make sure you code accoding to our [[Coding guidelines]].
Please make sure you code accoding to our [[Coding guidelines]].
</translate>

Latest revision as of 14:55, 16 February 2022

General

Until recently we used Subversion as versioning control system but now have moved to Git.

Accessing the LimeSurvey source code

Always be aware that most of the LimeSurvey Source code is bleeding edge. Do not use it for production purposes (except fo the master branch!

As for many other free software projects only community support is available.

Access the LimeSurvey source code with a Subversion client for your operating system.

  • For Windows we recommend: SmartGit because it is very easy to use.
  • For Linux & Mac we recommend: Git. Commandline , or use git gui, very easy too.

Step-by-Step How-To (Windows)

  1. Create a GitHub account.
  2. Download and install Git for Windows from [1]. Make sure that during install when asked for adding the Git path to your system path that you choose the "Run Git from the Windows Command Prompt" option. For further help see Set Up Git
  3. Download and install SmartGit.
  4. Clone the LimeSurvey repository with SmartGit. You can find the right clone URL at https://github.com/LimeSurvey/LimeSurvey .
  5. The whole source code repository should be downloading now.
  6. By default you should see the 'master' branch in the current directory
  7. Use the Switch command from the SmartGit GUI to switch to the branch you need.
  8. That's it.

Step-by-Step How-To (Linux)

Read-only mode

  1. Install via yum/apt/yahourt/... git and git-core
  2. Clone LimeSurvey in ReadOnly mode :
    git clone git://github.com/LimeSurvey/LimeSurvey.git
    
  3. By default you should see the 'master' branch in the current directory
  4. To set to dev (Yii branch actually)
    cd LimeSurvey
    
    git checkout Yii
    
  5. To get the update from LimeSurvey:
    cd LimeSurvey
    
    git pull
    

Start your own branch ( Fork )

  1. See the complete instrtuction in GitHub : http://help.github.com/fork-a-repo/

Please add instructions for other OSs or complete the existing ones.

Available branches

These are the available GitHub branches right now:

  • master - This is always the current stable (plus) version including any fixes not yet released.
  • original_art and original_art 2: These are the SVG files for almost all icons the stable and Yii version.
  • other_scripts, server_scripts, translation status: These are scripts being used in limesurvey.org or for new releases. We will merge these to a single 'server-scripts' branch soon.

Further documentation

Please make sure you code accoding to our Coding guidelines.