mirror of
https://github.com/Aviortheking/DeltaCMS.git
synced 2025-04-23 19:32:13 +00:00
Switch from Gitlab to self-host!
This commit is contained in:
parent
bd7c90747e
commit
b4dafa64b3
85
.drone.yml
Normal file
85
.drone.yml
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: Build
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: prepare
|
||||||
|
image: php:latest
|
||||||
|
commands:
|
||||||
|
- chmod +x prepare.sh && ./prepare.sh
|
||||||
|
- name: build
|
||||||
|
image: php:latest
|
||||||
|
commands:
|
||||||
|
- chmod +x prepare.sh && ./prepare.sh
|
||||||
|
- php composer.phar install
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: Test
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- Build
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: PHP Unit
|
||||||
|
image: php:latest
|
||||||
|
commands:
|
||||||
|
- chmod +x prepare.sh && ./prepare.sh
|
||||||
|
- php composer.phar run phpunit
|
||||||
|
- vendor/bin/codacycoverage clover tmp/code-coverage.xml
|
||||||
|
environment:
|
||||||
|
CODACY_PROJECT_TOKEN:
|
||||||
|
from_secret: CODACY_PROJECT_TOKEN
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: Code Quality
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- Build
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: PHP Code Sniffer
|
||||||
|
image: php:latest
|
||||||
|
commands:
|
||||||
|
- chmod +x prepare.sh && ./prepare.sh
|
||||||
|
- php composer.phar run phpcs
|
||||||
|
- name: PHP Mess Detector
|
||||||
|
image: php:latest
|
||||||
|
commands:
|
||||||
|
- chmod +x prepare.sh && ./prepare.sh
|
||||||
|
- php composer.phar run phpmd
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: Package
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- Code Quality
|
||||||
|
- Test
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: prod
|
||||||
|
image: php:latest
|
||||||
|
commands:
|
||||||
|
- chmod +x prepare.sh && ./prepare.sh
|
||||||
|
- php composer.phar install --no-dev --optimize-autoloader
|
||||||
|
- cat production.txt | zip AdminPanel.zip -r -@
|
||||||
|
- tar -cvzf AdminPanel.tar.gz -T production.txt
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
|
||||||
|
- name: release
|
||||||
|
image: plugins/gitea-release
|
||||||
|
settings:
|
||||||
|
api_key:
|
||||||
|
from_secret: gitea_token
|
||||||
|
base_url: https://git.delta-wings.net/
|
||||||
|
files:
|
||||||
|
- AdminPanel.zip
|
||||||
|
- AdminPanel.tar.gz
|
||||||
|
checksum:
|
||||||
|
- md5
|
||||||
|
- sha1
|
||||||
|
when:
|
||||||
|
event: tag
|
21
README.md
21
README.md
@ -1,5 +1,9 @@
|
|||||||
# Admin Panel
|
# Admin Panel
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
## Table of Content
|
## Table of Content
|
||||||
|
|
||||||
- [Admin Panel](#admin-panel)
|
- [Admin Panel](#admin-panel)
|
||||||
@ -34,17 +38,22 @@ We're using [shields.io](https://shields.io/) badges
|
|||||||
|
|
||||||
### Build status
|
### Build status
|
||||||
|
|
||||||

|
_([ci.delta-wings.net](https://ci.delta-wings.net))_
|
||||||
`https://img.shields.io/gitlab/pipeline/delta-wings/adminpanel.svg?style=for-the-badge`
|
|
||||||
|
|
||||||
|

|
||||||
|
`https://img.shields.io/drone/build/AdminPanel/Core.svg?server=https%3A%2F%2Fci.delta-wings.net&style=for-the-badge`
|
||||||
|
|
||||||
### Coverage
|
### Coverage
|
||||||
|
|
||||||
|
_([Codacy](https://app.codacy.com/project/Aviorleking/AdminPanel/dashboard))_
|
||||||
|
|
||||||

|

|
||||||
`https://img.shields.io/codacy/coverage/ae3cdab2030c4b62aa42d3d0eed40f86.svg?style=for-the-badge`
|
`https://img.shields.io/codacy/coverage/ae3cdab2030c4b62aa42d3d0eed40f86.svg?style=for-the-badge`
|
||||||
|
|
||||||
### Code Quality
|
### Code Quality
|
||||||
|
|
||||||
|
_([Codacy](https://app.codacy.com/project/Aviorleking/AdminPanel/dashboard))_
|
||||||
|
|
||||||

|

|
||||||
`https://img.shields.io/codacy/grade/ae3cdab2030c4b62aa42d3d0eed40f86.svg?style=for-the-badge`
|
`https://img.shields.io/codacy/grade/ae3cdab2030c4b62aa42d3d0eed40f86.svg?style=for-the-badge`
|
||||||
|
|
||||||
@ -58,10 +67,14 @@ We're using [shields.io](https://shields.io/) badges
|
|||||||
|
|
||||||
- [EditorConfig](https://editorconfig.org/)
|
- [EditorConfig](https://editorconfig.org/)
|
||||||
- [Git](https://git-scm.com/)
|
- [Git](https://git-scm.com/)
|
||||||
|
- [Issue & Merge request templates](https://www.talater.com/open-source-templates/#/)
|
||||||
- [Composer](https://getcomposer.org/)
|
- [Composer](https://getcomposer.org/)
|
||||||
- [PHP Codesniffer](https://github.com/squizlabs/PHP_CodeSniffer)
|
- [PHP Codesniffer](https://github.com/squizlabs/PHP_CodeSniffer)
|
||||||
- [Symfony VarDumper](https://symfony.com/doc/current/components/var_dumper.html)
|
- [Symfony VarDumper](https://symfony.com/doc/current/components/var_dumper.html)
|
||||||
- [PHPUnit](https://phpunit.de/)
|
- [PHPUnit](https://phpunit.de/)
|
||||||
- [PHP Mess Detector](https://phpmd.org/)
|
- [PHP Mess Detector](https://phpmd.org/)
|
||||||
- [Gitlab](https://gitlab.com/)
|
- Hosting
|
||||||
- [Codacy](codacy.com)
|
- [Gitlab](https://gitlab.com/) _Project url [here](https://gitlab.com/delta-wings/adminpanel)_
|
||||||
|
- [Gitea](https://gitea.io/) _Current server [here](https://git.delta-wings.net/Avior/AdminPanel)_
|
||||||
|
- [Drone](https://drone.io/) _Current server [here](https://ci.delta-wings.net/)_
|
||||||
|
- [Codacy](https://codacy.com/) _Project Dashboard [here](https://app.codacy.com/project/Aviorleking/AdminPanel/dashboard)_
|
||||||
|
Loading…
x
Reference in New Issue
Block a user