How to do a release

Når alle features og bugfixes til et release er lavet, gøres følgende.

    1. Opdater oversættelse (husk at redigerer configfil og enable oauth module)

    • $ bin/translation.php pull modules/janus/dictionaries/janus.translation.json

    1. Lav ny branch med versionsnummer

    • $ svn copy https://janus-ssp.googlecode.com/svn/trunk/ https://janus-ssp.googlecode.com/svn/branches/v.x.x -m "Created v. x.x branch"

    1. Skift til branch

    • $ svn switch https://janus-ssp.googlecode.com/svn/branches/v.x.x

    1. Opdater og commit CHANGES (skal gøres både på branch og trunk)

    • $ svn log --stop-on-copy -r HEAD:{LATEST_TAG} https://janus-ssp.googlecode.com/svn/branches/v.X.X/

    • $ svn commit CHANGES -m "Updated CHANGES"

    1. Update UPGRADE to accomodate the changes needed to be done in order to upgrade from latest version

    • $ svn commit UPGRADE -m "Updated UPGRADE"

    1. Merge CHAGES and UPGRADE to trunk

    • $ svn switch https://janus-ssp.googlecode.com/svn/trunk

    • $ svn merge -r {BRANCH_REV}:HEAD https://janus-ssp.googlecode.com/svn/branches/v.x.x/CHANGES

    • $ svn merge -r {BRANCH_REV}:HEAD https://janus-ssp.googlecode.com/svn/branches/v.x.x/UPGRADE

    • $ svn commit CHANGES UPGRADE -m "Merged CHANGES and UPGRADE to trunk"

    1. Update definition.json to reflect the new version.

      • $ svn switch https://janus-ssp.googlecode.com/svn/branches/v.x.x

      • $ svn commit definition.json -m "Updated definition.json"

      • $ svn switch https://janus-ssp.googlecode.com/svn/trunk

      • $ svn merge -r {BRANCH_REV}:HEAD https://janus-ssp.googlecode.com/svn/branches/v.x.x/definition.json

      • $ svn commit definition.json -m "Merged definition.json to trunk"

    2. Tag releaset

    • $ svn copy https://janus-ssp.googlecode.com/svn/branches/v.x.x https://janus-ssp.googlecode.com/svn/tags/v.x.x.x -m "Tagged v. x.x.x"

    1. Export taget til JANUS-versions diret

    • $ svn export http://janus-ssp.googlecode.com/svn/tags/v.x.x.x/ v.x.x.x

    1. Pak dette dir sammen og kopier til lokal maskine

    • $ tar cvzf JANUS-v.x.x.x.tar.gz v.x.x.x/*

    1. Upload til Google Code

    • $ scp jach@test.wayf.dk:/home/jach/JANUS-versions/JANUS-v.x.x.x.tar.gz .

      • Upload

    1. Fjern gammelt download

    2. Lav nyhed på JANUS siden, samt på google code

How to update translation

All commands are to be executed from the root of the SSP installation.

Translation config

$config = array (

'application' => 'JANUS',

'baseurl' => 'https://translation.rnd.feide.no/simplesaml',

'key' => 'xxx',

'secret' => 'xxx',

);

Upload new definition file

$ bin/translation.php push modules/janus/dictionaries/janus.definition.json

Download definition file

$ bin/translation.php pulldef modules/janus/dictionaries/janus.definition.json

Download translation file

$ bin/translation.php pull modules/janus/dictionaries/janus.translation.json