mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 10:08:05 +00:00
Add test suit for phpredis to ensure package building (and then deployment)
This commit is contained in:
parent
68a6ef760c
commit
b7ee465d1c
3 changed files with 11 additions and 2 deletions
|
|
@ -14,12 +14,13 @@ debian11-deploy:
|
||||||
- debian11-package
|
- debian11-package
|
||||||
- debian11-test
|
- debian11-test
|
||||||
|
|
||||||
phpredis-remi-package:
|
phpredis-remi-deploy:
|
||||||
extends: .deploy
|
extends: .deploy
|
||||||
script:
|
script:
|
||||||
- ./deploy_packages.sh rockylinux
|
- ./deploy_packages.sh rockylinux
|
||||||
needs:
|
needs:
|
||||||
- phpredis-remi-package
|
- phpredis-remi-package
|
||||||
|
- phpredis-remi-test
|
||||||
|
|
||||||
.deploy:
|
.deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ phpredis-remi-package:
|
||||||
- mkdir -p $CI_PROJECT_DIR/build
|
- mkdir -p $CI_PROJECT_DIR/build
|
||||||
- yum -y install wget php-devel gcc liblzf php-pear php-pecl-igbinary-devel php-pecl-msgpack-devel lz4-devel liblzf-devel libzstd-devel
|
- yum -y install wget php-devel gcc liblzf php-pear php-pecl-igbinary-devel php-pecl-msgpack-devel lz4-devel liblzf-devel libzstd-devel
|
||||||
- wget https://rpms.remirepo.net/SRPMS/$PHP_REDIS_REMI_VERSION.remi.src.rpm
|
- wget https://rpms.remirepo.net/SRPMS/$PHP_REDIS_REMI_VERSION.remi.src.rpm
|
||||||
- rpmbuild --rebuild php-pecl-redis5-5.3.7~RC2-1.remi.src.rpm
|
- rpmbuild --rebuild $PHP_REDIS_REMI_VERSION.remi.src.rpm
|
||||||
- mv /root/rpmbuild/RPMS/*/*.rpm $CI_PROJECT_DIR/build
|
- mv /root/rpmbuild/RPMS/*/*.rpm $CI_PROJECT_DIR/build
|
||||||
- rm -r /root/rpmbuild
|
- rm -r /root/rpmbuild
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,14 @@ debian11-test:
|
||||||
- php artisan key:generate
|
- php artisan key:generate
|
||||||
- vendor/bin/phpunit --log-junit $CI_PROJECT_DIR/flexiapi_phpunit.log
|
- vendor/bin/phpunit --log-junit $CI_PROJECT_DIR/flexiapi_phpunit.log
|
||||||
|
|
||||||
|
phpredis-remi-test:
|
||||||
|
extends: .test
|
||||||
|
image: gitlab.linphone.org:4567/bc/public/docker/rocky8-php:$ROCKY_8_IMAGE_VERSION
|
||||||
|
needs:
|
||||||
|
- phpredis-remi-package
|
||||||
|
script:
|
||||||
|
- yum -y localinstall build/*.rpm
|
||||||
|
|
||||||
.test:
|
.test:
|
||||||
tags: ["docker"]
|
tags: ["docker"]
|
||||||
stage: test
|
stage: test
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue