SensioLabsInsight 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 SensioLabsInsight 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 SensioLabsInsight will
now create a private Git repository hosted by SensioLabs where you can push your
4 The last step before analyzing your project is to push its source code to the Git repository provided by SensioLabsInsight. 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 sensiolabs firstname.lastname@example.org:<your-username>/<your-project>.git $ git push sensiolabs 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 sensiolabs master