Changes between Version 1 and Version 2 of Developers/Good Practices


Ignore:
Timestamp:
2018-11-08T19:15:03+01:00 (23 months ago)
Author:
nicolasmartin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Developers/Good Practices

    v1 v2  
     1= Good Practices 
     2 
     3== Set up a proper development environment once and for all 
     4 
     5Obviously each developer can have its own working approach for developing the NEMO code, however we recommend to download and run [source:/utils/install_dev_env.sh this script] to install a __clean and minimal working copy__ with everything you need to start your development and to support the NEMO reference. \\ 
     6Actually it will download from the SVN repository a working copy of `NEMO` root directory but only in terms of the very first paths in depth, you will have `NEMO/branches` and `NEMO/releases` with empty subfolders. Only the trunk (`NEMO/trunk`) and the last NEMO release (`NEMO/releases/release-X.X`) will be entirely downloaded. 
     7 
     8== Manage SVN externals according to your needs 
     9 
     10[[Include(wiki:Developers/ExternalDefinitions)]] 
     11 
    112{{{#!sh 
    2 #---------------------------------------------------------------------------------- 
    3 ## To do the first time 
    4 #---------------------------------------------------------------------------------- 
    5 ## Create a void NEMO development organisation (trunk + branches + releases) 
    6 svn co --depth immediates http://forge.ipsl.jussieu.fr/nemo/svn/NEMO/ NEMO_dev 
    7 cd NEMO_dev 
    8  
    9 ## Switch from user to developer role if you have the rights by changing the URL scheme 
    10 svn sw --relocate    http://forge.ipsl.jussieu.fr                          \ 
    11                   svn+ssh://${ID}@forge.ipsl.jussieu.fr/ipsl/forge/projets 
    12 ## Copy your SSH key to your account on the Forge server to avoid repeated password requests 
    13 ssh-copy-id -i ~/ssh/id_rsa.pub ${ID}@forge.ipsl.jussieu.fr 
    14  
    15 ## Get the current directory tree under 'branches' 
    16 svn up --set-depth immediates branches 
    17 ## Download the trunk, the same procedure can be used for any sub-content (release, dev branch) 
    18 svn up --set-depth infinity   trunk 
    19  
    2013#---------------------------------------------------------------------------------- 
    2114## To repeat for each development branch