Commit 1339ed88 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Merge branch '1.2.1-develop'

parents dc5dc2b7 6d352890
Loading
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+14 −0
Original line number Diff line number Diff line
image: localhost:5000/unicaen-dev-php7.0-apache
  
stages:
  - test

cache:
  paths:
    - vendor/

test:
  stage: test
  script:
    - composer install --dev
    - composer test module/ImportData

.gitmodules

0 → 100644
+3 −0
Original line number Diff line number Diff line
[submodule "deploiement"]
	path = deploiement
	url = git@git.unicaen.fr:dsi/deploiement/sygal-import-ws.git
+10 −0
Original line number Diff line number Diff line
@@ -35,3 +35,13 @@ des acteurs.
- [FEATURE] Deux nouveaux services apparaissent pour que Sygal puisse importer les informations concernant le financement 
            des thèses en cours : 'financement' et 'origine-financement'. 
- [FEATURE] Le service 'version' retourne désormais la version déployée effective (à l'aide de git).

## v1.2.1 (??/11/2018)

- [FEATURE] Une nouvelle colonne apparaît dans la vue SYGAL_INDIVIDU permettant notamment de détecter les acteurs que 
            Sygal ne sera pas en mesure de reconnaître à la connexion.

- [FEATURE] Une nouvelle vue SYGAL_TITRE_ACCES apparaît pour fournir les titres d'accès à l'inscription en thèse.  

- [FEATURE] Pour les corrections attendues d'une thèse, on parle désormais de corrections facultatives ou obligatoires, 
            plutôt que mineures ou majeures. La vue `SYGAL_THESE` est retouchée en ce sens.
 No newline at end of file
+0 −46
Original line number Diff line number Diff line
<?php
/**
 * Création du fichier de config 'config/autoload/deploy-info.local.php'
 * contenant la version courante de l'application.
 *
 * La version est obtenue grâce à git.
 */

use Zend\Config\Writer\PhpArray;

require __DIR__ . '/../vendor/autoload.php';

$OUTPUT_CONFIG_FILE = __DIR__ . '/../config/autoload/deploy-info.local.php';

function versionFromGit()
{
    $GIT_VERSION = 'git --no-pager describe --tags --always';
    $GIT_COMMIT = 'git rev-parse --verify --short=8 HEAD';

    $output = [];
    exec($GIT_VERSION, $output, $return);
    $tag = $return === 0 ? implode('', $output) : 'Version inconnue';
    $output = [];
    exec($GIT_COMMIT, $output, $return);
    $commit = $return === 0 ? implode('', $output) : 'Commit inconnu';

    $version = sprintf("%s (%s)", $tag, $commit);

    return $version;
}

$version = versionFromGit();

$config = [
    'deploy-info' => [
        'about'   => sprintf("Ce fichier de config est généré par %s le %s", __FILE__, date('d/m/Y H:i:s')),
        'version' => $version,
    ],
];

$configWriter = new PhpArray();
$configWriter->setUseBracketArraySyntax(true);
$configWriter->toFile($OUTPUT_CONFIG_FILE, $config);

echo "Fichier '$OUTPUT_CONFIG_FILE' créé avec succès." . PHP_EOL;
echo "Version détectée: $version." . PHP_EOL;
+8 −7
Original line number Diff line number Diff line
@@ -22,12 +22,16 @@
        "zfcampus/zf-apigility-doctrine": "^2.1",
        "doctrine/doctrine-orm-module": "^1.1",
        "zendframework/zend-console": "^2.7",
        "unicaen/oracle": "^1.2"
        "unicaen/oracle": "^1.2",
        "doctrine/common": "^2.7"
    },
    "require-dev": {
        "zendframework/zend-developer-tools": "^1.1",
        "zfcampus/zf-apigility-admin": "^1.5.9",
        "zfcampus/zf-deploy": "^1.2"
        "zfcampus/zf-deploy": "^1.2",
        "squizlabs/php_codesniffer": "^3.3",
        "phpunit/phpunit": "^6.5",
        "zendframework/zend-test": "^3.2"
    },
    "autoload": {
        "psr-4": {
@@ -40,14 +44,11 @@
    },
    "autoload-dev": {
        "psr-4": {
            "ApplicationTest\\": "module/Application/test/"
            "ApplicationTest\\": "module/Application/test/",
            "ImportDataTest\\": "module/ImportData/test/"
        }
    },
    "scripts": {
        "post-install-cmd": [
            "php bin/generate-deploy-info-config.php"
        ],

        "cs-check": "phpcs",
        "cs-fix": "phpcbf",
        "development-disable": "zf-development-mode disable",
Loading