PhyrePanel-mirror/.drone.yml

89 lines
3 KiB
YAML
Raw Normal View History

2024-05-04 00:53:37 +00:00
---
kind: pipeline
2024-05-07 08:13:25 +00:00
name: Ubuntu 22.04 - CODE COVERAGE
2024-05-04 00:53:37 +00:00
steps:
- name: run unit tests
2024-05-07 08:13:25 +00:00
image: ubuntu:22.04
environment:
DEBIAN_FRONTEND: noninteractive
2024-05-04 00:53:37 +00:00
commands:
2024-05-07 08:13:25 +00:00
- apt-get update
- apt-get install -y libicu-dev sudo cron apt-utils -yqq daemonize dbus-user-session fontconfig rsync
- daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target
2024-05-04 00:57:21 +00:00
2024-05-07 08:48:50 +00:00
- ls -la
2024-05-04 00:53:37 +00:00
- mkdir /phyre-panel
2024-05-07 08:48:50 +00:00
- cp installers/${{ matrix.os }}/install-partial/install_base.sh /phyre-panel/install_base.sh
2024-05-04 00:53:37 +00:00
- chmod +x /phyre-panel/install_base.sh
- /phyre-panel/install_base.sh
2024-05-07 08:48:50 +00:00
- cp installers/${{ matrix.os }}/install-partial/install_web.sh /phyre-panel/install_web.sh
- chmod +x /phyre-panel/install_web.sh
- cp -r web /usr/local/phyre/web/
- cd /usr/local/phyre/web/
- ls -la
- wget https://getcomposer.org/download/latest-stable/composer.phar
- COMPOSER_ALLOW_SUPERUSER=1 phyre-php composer.phar install
- /phyre-panel/install_web.sh
2024-05-07 08:13:25 +00:00
- apt-get install autoconf build-essential -y
- mkdir -p /usr/local/phyre/php-xdebug
2024-05-07 08:23:51 +00:00
- cd /usr/local/phyre/php-xdebug
2024-05-07 08:13:25 +00:00
- wget http://xdebug.org/files/xdebug-3.3.2.tgz
- tar -xvzf xdebug-3.3.2.tgz
- cd xdebug-3.3.2
- /usr/local/phyre/php/bin/phpize
- ./configure --enable-xdebug --with-php-config=/usr/local/phyre/php/bin/php-config
- make
2024-05-07 08:48:50 +00:00
2024-05-07 08:13:25 +00:00
- mkdir -p /usr/local/phyre/php/zend-xdebug
- cp modules/xdebug.so /usr/local/phyre/php/zend-xdebug/xdebug.so
2024-05-07 08:48:50 +00:00
2024-05-07 08:13:25 +00:00
- chmod 777 /usr/local/phyre/php/zend-xdebug/xdebug.so
2024-05-07 08:33:46 +00:00
2024-05-07 08:13:25 +00:00
- cp /usr/local/phyre/web/tests/xdebug-php-ini.txt /usr/local/phyre/php/bin/php.ini
2024-05-07 08:48:50 +00:00
2024-05-07 08:13:25 +00:00
- chmod 777 /usr/local/phyre/php/bin/php.ini
- phyre-php -v
2024-05-07 08:23:51 +00:00
2024-05-07 08:48:50 +00:00
- cd /usr/local/phyre/web/
- chmod -R 777 vendor
2024-05-07 08:13:25 +00:00
- apt install composer -y
- composer test:coverage
- name: codecov
image: robertstettner/drone-codecov
settings:
token: ${CODECOV_TOKEN}
files: /usr/local/phyre/web/clover.xml
2024-05-03 15:05:47 +00:00
---
2024-05-02 21:44:39 +00:00
kind: pipeline
2024-05-03 15:16:36 +00:00
name: Ubuntu 22.04
2024-05-02 21:44:39 +00:00
steps:
2024-05-03 15:08:53 +00:00
- name: run unit tests
2024-05-02 22:11:50 +00:00
image: ubuntu:22.04
2024-05-02 23:03:21 +00:00
environment:
2024-05-07 08:13:25 +00:00
DEBIAN_FRONTEND: noninteractive
2024-05-02 21:44:39 +00:00
commands:
2024-05-02 22:13:24 +00:00
- apt-get update
2024-05-03 14:45:32 +00:00
- apt-get install -y libicu-dev sudo cron apt-utils -yqq daemonize dbus-user-session fontconfig rsync
2024-05-03 14:00:48 +00:00
- daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target
2024-05-02 22:06:40 +00:00
2024-05-02 22:07:15 +00:00
- mkdir /phyre-panel
- cp installers/ubuntu-22.04/install-partial/install_base.sh /phyre-panel/install_base.sh
- chmod +x /phyre-panel/install_base.sh
- /phyre-panel/install_base.sh
- cp installers/ubuntu-22.04/install-partial/install_web.sh /phyre-panel/install_web.sh
- chmod +x /phyre-panel/install_web.sh
- cp -r web /usr/local/phyre/web/
2024-05-02 22:05:24 +00:00
- cd /usr/local/phyre/web/
2024-05-02 22:07:15 +00:00
- wget https://getcomposer.org/download/latest-stable/composer.phar
- COMPOSER_ALLOW_SUPERUSER=1 phyre-php composer.phar install
- /phyre-panel/install_web.sh
- phyre-php artisan test