mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 01:58:07 +00:00
47 lines
1.3 KiB
YAML
47 lines
1.3 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
|
|
|
|
debian11-test:
|
|
extends: .test
|
|
image: gitlab.linphone.org:4567/bc/public/docker/debian11-php:$DEBIAN_11_IMAGE_VERSION
|
|
needs:
|
|
- debian11-package
|
|
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
|
|
|
|
remi-phpredis-test:
|
|
extends: .test
|
|
image: gitlab.linphone.org:4567/bc/public/docker/rocky8-php:$ROCKY_8_IMAGE_VERSION
|
|
needs:
|
|
- remi-phpredis-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
|