Documentation


Analyze projects not managed with Git

SymfonyInsight needs to access your source code in order to analyze the quality of your projects. If your project is managed with Git, its code can be analyzed automatically. However, if you use Subversion, Mercurial, Bazaar, Perforce or any other source code management technology, you'll have to follow these steps before analyzing it:

  1. Access to your private SymfonyInsight dashboard and click on the Add project link located at the top of the right sidebar.
  2. Click on the Other tab and choose the name of your project.
  3. Click on the Create repository button and SymfonyInsight will now create and host a private Git repository where you can push your code.
  4. The last step before analyzing your project is to push its source code to the Git repository provided by SymfonyInsight. To do so, install Git on your own machine and then execute the following commands to initialize your Git project and to push the source code:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    $ mkdir myproject/
    $ cd myproject/
    $ git init
    
    # copy the source code of your project on this new directory:
    # cp -r /your/project/files/ myproject/
    
    $ git add .
    $ git commit -m "Added initial set of files"
    $ git remote add symfony git@git.symfony.com:<your-username>/<your-project>.git
    $ git push symfony master

    For subsequent analyses, copy again the files that have changed and push the code before running the analysis:

    1
    2
    3
    4
    $ cd myproject/
    $ git add .
    $ git commit "Updated project files"
    $ git push symfony master