Commit fd9edffd authored by Benoit Mortier's avatar Benoit Mortier
Browse files

feat(plugins) git de base pour la creation de plugins


Signed-off-by: default avatarBenoit Mortier <benoit.mortier@opensides.be>
parent 016e16db
.directory
# Specify docker image
image: debian:stretch
# Define variable to disable SSL verification of GIT
variables:
GIT_SSL_NO_VERIFY: "true"
stages:
- lint
- codestyle
- transifex
## Stage lint
# PHP lint (stretch)
create_php_lint_rapport_stretch:
image: php:cli-stretch
stage: lint
only:
- branches
script:
- find . -type f -name '*.php' -o -name '*.inc' -print0 | xargs -0 -n1 php -l
## Stage codestyle
# PHP codesniffer
create_php_code_sniffer_rapport:
image: phpcodesniffer-cli:stretch
stage: codestyle
only:
- branches
script:
- git clone --depth 1 https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools
- find . -type f -name '*.php' -o -name '*.inc' > ./filelist
- phpcs --ignore=class_sieve.inc --standard=../dev-tools/php-codesniffer-rules/FDStandard/ruleset.xml --file-list=./filelist
# fusiondirectory-update-locale
fusiondirectory-update-locale:
image: transifex-cli:stretch
stage: transifex
only:
- branches
script:
- git clone --depth 1 https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools
- ../dev-tools/locale-scripts/fusiondirectory-update-locale-plugins
# Update transifex
update-transifex:
image: transifex-cli:stretch
stage: transifex
only:
- /^1.*$/
script:
- git clone --depth 1 https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools
- echo $'[https://www.transifex.com]\nhostname = https://www.transifex.com\nusername = '"$TRANSIFEX_USER"$'\npassword = '"$TRANSIFEX_PASSWORD"$'\ntoken = '"$TRANSIFEX_API_TOKEN"$'\n' > ~/.transifexrc
- tx pull -a -f
- ../dev-tools/locale-scripts/fusiondirectory-update-locale-plugins
- tx push -f -s -t --skip --no-interactive
### Description
<!-- Required -->
<!-- Description of the issue -->
### Nom Distribution et Version
<!-- Required -->
<!-- Debian, Centos -->
### Version FusionDirectory
<!-- Required -->
### Version PHP version utilise
<!-- Required -->
### Origine des packages php
<!-- Required -->
<!-- Distribution packages, Out of distribution -->
### Etapes pour reproduire
<!-- Required -->
1. [First Step]
2. [Second Step]
3. [and so on...]
**Expected behavior:**
<!-- What you expect to happen-->
**Actual behavior:**
<!-- What actually happens -->
**Reproduces how often:**
<!-- What percentage of the time does it reproduce?-->
### Information Additionelles
<!-- optional -->
<!-- Any additional information, configuration or data that might be necessary to reproduce the issue. -->
### Requirements
* Filling out the template is required. Any Enhancement request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretions.
* All new code requires tests to ensure against regressions
## Description pour cette contribution
<!-- required -->
### Explication pas a pas de cette contribution
<!-- Required -->
1. [First Step]
2. [Second Step]
3. [and so on...]
### Schemas necessaire pour cette contribution
<!-- Describe if schema changes are needed by this contribution -->
<!-- Describe if new schemas are need for this contribution -->
### Benefices
<!-- Required -->
<!-- What benefits will be realized with this contribution ? -->
### Problemes possibles
<!-- optional -->
<!-- What are the possible side-effects or negative impacts of this contribution ? -->
### Cas d'utilisation
<!-- optional -->
<!-- Enter any applicable Issues here -->
### Quel est le sujet de la discution ?
<!-- Required -->
<!-- Résumé le sujet de la discution -->
### Quel est la/les raison(s) de la discution ?
<!-- Required -->
<!-- Resumé la/les raison(s) de la discution -->
### Quels sont les arguments pour et contre le sujet du ticket ?
<!-- Required -->
<!-- Résumé les différents arguments -->
/label ~discussion
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment