From c67ee4076825e16151d1c4b2dbb589c27ac4ec13 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Sat, 11 May 2024 00:02:42 +0300 Subject: [PATCH] update --- .drone.yml | 79 ---------------------------------------- .drone.yml.orig | 95 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+), 79 deletions(-) create mode 100644 .drone.yml.orig diff --git a/.drone.yml b/.drone.yml index d43c2c8..c4a0f29 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,59 +2,6 @@ kind: pipeline name: Ubuntu 22.04 - CODE COVERAGE steps: - - name: run unit tests - image: ubuntu:22.04 - environment: - DEBIAN_FRONTEND: noninteractive - commands: - - 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 - - - ls -la - - 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/ - - 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 - - - apt-get install autoconf build-essential -y - - mkdir -p /usr/local/phyre/php-xdebug - - cd /usr/local/phyre/php-xdebug - - 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 - - - mkdir -p /usr/local/phyre/php/zend-xdebug - - cp modules/xdebug.so /usr/local/phyre/php/zend-xdebug/xdebug.so - - - chmod 777 /usr/local/phyre/php/zend-xdebug/xdebug.so - - - cp /usr/local/phyre/web/tests/xdebug-php-ini.txt /usr/local/phyre/php/bin/php.ini - - - chmod 777 /usr/local/phyre/php/bin/php.ini - - phyre-php -v - - - cd /usr/local/phyre/web/ - - chmod -R 777 vendor - - apt install composer -y - - composer test:coverage - - name: codecov image: bobicloudvision/drone-codecov environment: @@ -66,29 +13,3 @@ steps: - /usr/local/phyre/web/clover.xml flags: - unit ---- -kind: pipeline -name: Ubuntu 22.04 -steps: - - name: run unit tests - image: ubuntu:22.04 - environment: - DEBIAN_FRONTEND: noninteractive - commands: - - 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 - - - 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/ - - cd /usr/local/phyre/web/ - - 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 diff --git a/.drone.yml.orig b/.drone.yml.orig new file mode 100644 index 0000000..bc7b438 --- /dev/null +++ b/.drone.yml.orig @@ -0,0 +1,95 @@ +--- +kind: pipeline +name: Ubuntu 22.04 - CODE COVERAGE +steps: + - name: run unit tests + image: ubuntu:22.04 + environment: + DEBIAN_FRONTEND: noninteractive + commands: + - 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 + + - ls -la + - 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/ + - 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 + + - apt-get install autoconf build-essential -y + - mkdir -p /usr/local/phyre/php-xdebug + - cd /usr/local/phyre/php-xdebug + - 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 + + - mkdir -p /usr/local/phyre/php/zend-xdebug + - cp modules/xdebug.so /usr/local/phyre/php/zend-xdebug/xdebug.so + + - chmod 777 /usr/local/phyre/php/zend-xdebug/xdebug.so + + - cp /usr/local/phyre/web/tests/xdebug-php-ini.txt /usr/local/phyre/php/bin/php.ini + + - chmod 777 /usr/local/phyre/php/bin/php.ini + - phyre-php -v + + - cd /usr/local/phyre/web/ + - chmod -R 777 vendor + - apt install composer -y + - composer test:coverage + + - name: codecov + image: bobicloudvision/drone-codecov + environment: + CODECOV_TOKEN: + from_secret: CODECOV_TOKEN + settings: + token: $CODECOV_TOKEN + files: + - /usr/local/phyre/web/clover.xml + flags: + - unit +--- +kind: pipeline +name: Ubuntu 22.04 +steps: + - name: run unit tests + image: ubuntu:22.04 + environment: + DEBIAN_FRONTEND: noninteractive + commands: + - 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 + + - 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/ + - cd /usr/local/phyre/web/ + - 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 +