mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
Compare commits
21 commits
023560c09d
...
56be2d15cc
Author | SHA1 | Date | |
---|---|---|---|
|
56be2d15cc | ||
|
299f4aab8e | ||
|
3008068b4e | ||
|
670b3b0e14 | ||
|
e87a544b3c | ||
|
cd6aabd3bc | ||
|
ce2b341f40 | ||
|
a724a63d42 | ||
|
730579b421 | ||
|
ce10062ebb | ||
|
e14ecde78e | ||
|
6c590d3c11 | ||
|
2645182d7c | ||
|
8126f7397c | ||
|
3f2c574c51 | ||
|
1b84ad1186 | ||
|
1ba6b5e00d | ||
|
7f98ca6163 | ||
|
12cf14d6dd | ||
|
0f96d35fe5 | ||
|
08b75a0e22 |
7 changed files with 32 additions and 4 deletions
23
.drone.yml
Normal file
23
.drone.yml
Normal 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
|
|
@ -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.
|
||||
|
|
|
@ -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
|
|
@ -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()
|
||||
{
|
|
@ -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()
|
||||
{
|
Loading…
Reference in a new issue