Compare commits

...

21 commits

Author SHA1 Message Date
Bobi
56be2d15cc
Update .drone.yml 2024-05-03 02:03:21 +03:00
Bozhidar
299f4aab8e Update AHostingSubscriptionCreateTest.php 2024-05-03 01:46:09 +03:00
Bozhidar
3008068b4e update 2024-05-03 01:36:28 +03:00
Bozhidar
670b3b0e14 update 2024-05-03 01:26:11 +03:00
Bozhidar
e87a544b3c Update .drone.yml 2024-05-03 01:21:24 +03:00
Bozhidar
cd6aabd3bc Update .drone.yml 2024-05-03 01:20:05 +03:00
Bozhidar
ce2b341f40 Update .drone.yml 2024-05-03 01:17:28 +03:00
Bozhidar
a724a63d42 Update .drone.yml 2024-05-03 01:13:24 +03:00
Bozhidar
730579b421 Update .drone.yml 2024-05-03 01:12:57 +03:00
Bozhidar
ce10062ebb Update .drone.yml 2024-05-03 01:12:40 +03:00
Bozhidar
e14ecde78e Update .drone.yml 2024-05-03 01:12:14 +03:00
Bozhidar
6c590d3c11 Update .drone.yml 2024-05-03 01:11:50 +03:00
Bozhidar
2645182d7c Update .drone.yml 2024-05-03 01:07:15 +03:00
Bozhidar
8126f7397c Update .drone.yml 2024-05-03 01:06:40 +03:00
Bozhidar
3f2c574c51 Update .drone.yml 2024-05-03 01:06:05 +03:00
Bozhidar
1b84ad1186 Update .drone.yml 2024-05-03 01:05:24 +03:00
Bozhidar
1ba6b5e00d Update .drone.yml 2024-05-03 00:55:34 +03:00
Bozhidar
7f98ca6163 Update .drone.yml 2024-05-03 00:52:07 +03:00
Bozhidar
12cf14d6dd Update .drone.yml 2024-05-03 00:47:23 +03:00
Bozhidar
0f96d35fe5 Update .drone.yml 2024-05-03 00:44:39 +03:00
Bozhidar
08b75a0e22 update 2024-05-03 00:43:18 +03:00
7 changed files with 32 additions and 4 deletions

23
.drone.yml Normal file
View file

@ -0,0 +1,23 @@
kind: pipeline
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
- 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

View file

@ -16,7 +16,7 @@ The admin panel can be opened on port: yourserver.com:8443
## Build Status
### Master branch
![Unit Tests](https://github.com/PhyreApps/PhyrePanel/actions/workflows/app-unit-test.yml/badge.svg)
[![Build Status](http://95.217.182.28/api/badges/PhyreApps/PhyrePanel/status.svg)](http://95.217.182.28/PhyreApps/PhyrePanel)
[![codecov](https://codecov.io/gh/PhyreApps/PhyrePanel/graph/badge.svg?token=BO0RTPLS4W)](https://codecov.io/gh/PhyreApps/PhyrePanel)
All development is done on the `dev` branch. The `master` branch is used for stable releases.

View file

@ -13,7 +13,7 @@ use Illuminate\Support\Str;
use PHPUnit\Framework\TestCase;
use Tests\Feature\Api\ActionTestCase;
class HostingSubscriptionCreateTest extends ActionTestCase
class AHostingSubscriptionCreateTest extends ActionTestCase
{
function test_route_contains_middleware()
{
@ -61,6 +61,11 @@ class HostingSubscriptionCreateTest extends ActionTestCase
sleep(3);
}
if (!$installationSuccess) {
$logContent = file_get_contents($installLogFilePath);
$this->fail('Apache+PHP installation failed. Log: '.$logContent);
}
$this->assertTrue($installationSuccess, 'Apache+PHP installation failed');
// Make unauthorized call

View file

@ -13,7 +13,7 @@ use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Storage;
use Tests\Feature\Api\ActionTestCase;
class BackupTest extends ActionTestCase
class ZBackupTest extends ActionTestCase
{
public function testFullBackup()
{

View file

@ -19,7 +19,7 @@ use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Str;
use Tests\Feature\Api\ActionTestCase;
class HostingSubscriptionBackupTest extends ActionTestCase
class ZHostingSubscriptionBackupTest extends ActionTestCase
{
public function testFullBackup()
{