mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 10:08:05 +00:00
56 lines
1.5 KiB
YAML
56 lines
1.5 KiB
YAML
rocky8-test:
|
|
extends: .test
|
|
image: gitlab.linphone.org:4567/bc/public/docker/rocky8-php:$ROCKY_8_IMAGE_VERSION
|
|
needs:
|
|
- rocky8-package
|
|
script:
|
|
- yum -y localinstall build/*.rpm
|
|
- cd /opt/belledonne-communications/share/flexisip-account-manager/flexiapi
|
|
- composer install
|
|
- vendor/bin/phpcs
|
|
- vendor/bin/phpmd . ansi phpmd.xml
|
|
- php artisan key:generate
|
|
- vendor/bin/phpunit --log-junit $CI_PROJECT_DIR/flexiapi_phpunit.log
|
|
|
|
.debian-test:
|
|
extends: .test
|
|
script:
|
|
- pwd
|
|
- apt update
|
|
- apt install -y ./build/*.deb
|
|
- cd /opt/belledonne-communications/share/flexisip-account-manager/flexiapi
|
|
- composer install --dev
|
|
- vendor/bin/phpcs
|
|
- vendor/bin/phpmd . ansi phpmd.xml
|
|
- php artisan key:generate
|
|
- vendor/bin/phpunit --log-junit $CI_PROJECT_DIR/flexiapi_phpunit.log
|
|
|
|
debian11-test:
|
|
extends: .debian-test
|
|
image: gitlab.linphone.org:4567/bc/public/docker/debian11-php:$DEBIAN_11_IMAGE_VERSION
|
|
needs:
|
|
- debian11-package
|
|
|
|
debian12-test:
|
|
extends: .debian-test
|
|
image: gitlab.linphone.org:4567/bc/public/docker/debian12-php:$DEBIAN_12_IMAGE_VERSION
|
|
needs:
|
|
- debian12-package
|
|
|
|
remi-phpredis-test:
|
|
extends: .test
|
|
image: gitlab.linphone.org:4567/bc/public/docker/rocky8-php:$ROCKY_8_IMAGE_VERSION
|
|
needs:
|
|
- remi-package
|
|
script:
|
|
- yum -y localinstall build/*.rpm
|
|
|
|
.test:
|
|
tags: ["docker"]
|
|
stage: test
|
|
artifacts:
|
|
paths:
|
|
- $CI_PROJECT_DIR/flexiapi_phpunit.log
|
|
- flexiapi/storage/logs/
|
|
when: always
|
|
expire_in: 1 day
|