Skip to content

Commit 9c23a6c

Browse files
committed
initial
0 parents  commit 9c23a6c

65 files changed

Lines changed: 6178 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "composer"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"

.github/workflows/phpstan.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: PHPStan CI
2+
3+
on: push
4+
5+
jobs:
6+
phpstan:
7+
name: PHPStan Analysis
8+
runs-on: ubuntu-latest
9+
if: "!contains(github.event.head_commit.message, '[ci skip]')"
10+
11+
steps:
12+
- name: Startup
13+
uses: actions/checkout@v3
14+
15+
- name: Download PHP Release
16+
uses: dsaltares/fetch-gh-release-asset@1.1.0
17+
with:
18+
file: PHP-Linux-x86_64-PM5.tar.gz
19+
repo: pmmp/PHP-Binaries
20+
version: "tags/php-8.2-latest"
21+
22+
- name: Unpack PHP Release
23+
run: tar -xzvf PHP-Linux-x86_64-PM5.tar.gz
24+
25+
- name: Download Composer
26+
run: curl -o composer.phar "https://getcomposer.org/composer-stable.phar"
27+
28+
- name: Install Composer dependencies
29+
run: ./bin/php7/bin/php composer.phar install --prefer-dist --no-interaction
30+
31+
- name: Run PHPStan
32+
run: ./bin/php7/bin/php vendor/bin/phpstan.phar analyze --no-progress

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.idea/*
2+
/vendor/

Jenkinsfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
pipeline {
2+
agent any
3+
options {
4+
buildDiscarder(logRotator(artifactNumToKeepStr: '10'))
5+
}
6+
stages {
7+
stage ('BuildPMMP') {
8+
steps {
9+
sh 'chmod +x scripts/build-pmmp.sh'
10+
sh 'scripts/build-pmmp.sh'
11+
}
12+
post {
13+
success {
14+
archiveArtifacts artifacts: 'Common.phar', fingerprint: true
15+
}
16+
}
17+
}
18+
}
19+
post {
20+
always {
21+
deleteDir()
22+
discordSend(customAvatarUrl: "https://i.imgur.com/kEaewDN.png", webhookURL: "https://ptb.discord.com/api/webhooks/", description: "**Build:** ${env.BUILD_NUMBER}\n**Status:** Success\n\n**Changes:**\n${env.BUILD_URL}", footer: "Fallentech Build System", link: "${env.BUILD_URL}", successful: true, title: "Build Success: Common", unstable: false, result: "SUCCESS")
23+
}
24+
}
25+
}

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Common
2+
FallenTech Essentials

composer.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "fallentech/common",
3+
"description": "common plugin",
4+
"type": "project",
5+
"license": "GPL-3.0-only",
6+
"autoload": {
7+
"psr-0": {
8+
"Fallentech\\Common\\": "src/"
9+
}
10+
},
11+
"config": {
12+
"platform": {
13+
"php": "8.1"
14+
},
15+
"sort-packages": true
16+
},
17+
"minimum-stability": "dev",
18+
"require": {
19+
"sof3/libasynql": "dev-pm5",
20+
"ext-gd": "*"
21+
},
22+
"require-dev": {
23+
"php": "^8.0",
24+
"pocketmine/pocketmine-mp": "^5.3.0",
25+
"phpstan/phpstan": "1.10.25"
26+
},
27+
"scripts": {
28+
"phpstan": "vendor/bin/phpstan -c phpstan.neon.dist"
29+
}
30+
}

0 commit comments

Comments
 (0)