PhyrePanel-mirror/.drone.yml

30 lines
1.1 KiB
YAML
Raw Normal View History

2024-05-02 21:44:39 +00:00
kind: pipeline
steps:
2024-05-02 22:20:05 +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:
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
2024-05-03 14:54:26 +00:00
- name: codecov
image: robertstettner/drone-codecov
settings:
token: ${CODECOV_TOKEN}
files: /usr/local/phyre/web/clover.xml