Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory-orchestrator
Merge requests
!16
feat(ci): Use master fd gitlab-ci
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Jonathan Swaelens
requested to merge
14-rename-apache-configuration-file-3
into
0.9-fixes
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Use master fd gitlab-ci
Closes
#14 (closed)
0
0
Compare
0.9-fixes
0.9-fixes (base)
and
latest version
latest version
9c84338f
1 commit,
2 years ago
1 file
+
11
−
70
Expand all files
Preferences
Preferences
File browser
List view
Tree view
Compare changes
Inline
Side-by-side
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
11
−
70
Options
View file @ 9c84338f
# Specify docker image
image
:
debian:stretch
stages
:
-
lint
-
codestyle
-
tarballs
-
trigger
## Stage lint
# PHP lint (buster)
create_php_lint_rapport
:
image
:
registry.fusiondirectory.org/fusiondirectory/fd/phpcodesniffer-cli:buster
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
:
registry.fusiondirectory.org/fusiondirectory/fd/phpcodesniffer-cli:buster
stage
:
codestyle
only
:
-
branches
script
:
-
test -d ../dev-tools/ && rm -Rf ../dev-tools/
-
git clone --depth 1 https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools
-
find . -type f -name '*.php' -o -name '*.inc' > ./filelist
-
/root/.composer/vendor/bin/phpcs --standard=../dev-tools/php-codesniffer-rules/FDStandard/ruleset.xml --file-list=./filelist
-
git clone --depth 1 https://gitlab-ci:$GITLAB_CI_TOKEN@gitlab.fusiondirectory.org/php-tools/PHPCompatibility.git ../PHPCompatibility
-
git clone --depth 1 https://gitlab-ci:$GITLAB_CI_TOKEN@gitlab.fusiondirectory.org/php-tools/PHPCSUtils.git ../PHPCSUtils
-
/root/.composer/vendor/bin/phpcs --config-set installed_paths /builds/fusiondirectory/PHPCompatibility,/builds/fusiondirectory/PHPCSUtils
-
/root/.composer/vendor/bin/phpcs --standard=PHPCompatibility --runtime-set testVersion 7.3-7.4 --file-list=./filelist
# phpstan
create_phpstan_rapport
:
image
:
registry.fusiondirectory.org/fusiondirectory/fd/phpstan:buster
stage
:
codestyle
only
:
-
branches
script
:
-
test -d ../dev-tools/ && rm -Rf ../dev-tools/
-
git clone --depth 1 https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools
-
apt install libphp-phpmailer
-
composer global require vlucas/phpdotenv=3.6.7
-
composer global require phpstan/phpstan=0.12.94
-
cp ../dev-tools/phpstan/fusiondirectory-orchestrator/*.neon .
-
composer global require phpstan/phpstan=0.12.94
-
/root/.composer/vendor/bin/phpstan analyse -c phpstan.neon
build-tarballs
:
build-release
:
stage
:
tarballs
only
:
-
main
-
tags
script
:
-
mkdir ../fusiondirectory-orchestrator-0.9/
-
mv ./* ../fusiondirectory-orchestrator-0.9/
-
mv ../fusiondirectory-orchestrator-0.9/ ./
-
tar -cvzf fusiondirectory-orchestrator-0.9.tar.gz *
-
VERSION=$(grep '%' Changelog.md | head -n1 | cut -d ' ' -f3 | tr -d '"')
-
mkdir ../fusiondirectory-orchestrator-$VERSION/
-
mv ./* ../fusiondirectory-orchestrator-$VERSION/
-
mv ../fusiondirectory-orchestrator-$VERSION/ ./
-
tar -cvzf fusiondirectory-orchestrator-$VERSION.tar.gz *
artifacts
:
paths
:
-
fusiondirectory-orchestrator-0.9.tar.gz
expire_in
:
30d
trigger-ci-debian-buster
:
stage
:
trigger
only
:
-
main
variables
:
GROUP
:
"
$GROUP"
BRANCH_CORE
:
"
$CI_COMMIT_REF_NAME"
BRANCH_PLUGIN
:
"
$CI_COMMIT_REF_NAME"
BRANCH_BUILD_DEBIAN_BUSTER
:
"
$BRANCH_BUILD_DEBIAN_BUSTER"
trigger
:
project
:
debian/buster-fusiondirectory-orchestrator-dev
branch
:
"
$BRANCH_BUILD_DEBIAN_BUSTER"
-
./*.tar.gz
Menu
Explore
Projects
Groups
Topics
Snippets