-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
root
committed
Jan 16, 2022
0 parents
commit d2517a8
Showing
354 changed files
with
17,858 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Configuration files | ||
.ts3config/* | ||
!.ts3config/*.dist | ||
|
||
# Build related | ||
build/ | ||
.php_cs.cache | ||
|
||
# OS-specific | ||
.DS_Store | ||
|
||
# Composer libraries | ||
composer.lock | ||
vendor/ | ||
|
||
# Intellij project files | ||
.idea | ||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
$finder = PhpCsFixer\Finder::create()->in(__DIR__); | ||
|
||
$cacheDir = getenv('TRAVIS') ? getenv('HOME') . '/.php-cs-fixer' : __DIR__; | ||
|
||
return PhpCsFixer\Config::create() | ||
->setCacheFile($cacheDir . '/.php_cs.cache') | ||
->setFinder($finder) | ||
->setRules(array( | ||
'@PSR2' => true, | ||
'array_syntax' => array( | ||
'syntax' => 'short', | ||
), | ||
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
env: | ||
global: | ||
- CC_TEST_REPORTER_ID=746515d1c23be6dd2156392b8113586efad4e99606da2e2d17a6bafbda7ae355 | ||
- GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi) | ||
|
||
sudo: required | ||
|
||
language: php | ||
|
||
php: | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
- nightly | ||
|
||
matrix: | ||
include: | ||
- php: 7.2 | ||
env: COVERAGE=yes | ||
- php: 7.2 | ||
env: EXECUTE_CS_CHECK=yes | ||
fast_finish: true | ||
allow_failures: | ||
- php: nightly | ||
- php: 7.2 | ||
env: EXECUTE_CS_CHECK=yes | ||
|
||
services: | ||
- docker | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
- $HOME/.php-cs-fixer | ||
|
||
before_install: | ||
- docker run -d --name="teamspeak_server" -p "9987:9987/udp" -p 10011:10011 -p 30033:30033 teamspeak:latest | ||
- docker ps -a | ||
- docker logs teamspeak_server | ||
- if [[ $TRAVIS_PHP_VERSION != hhvm && $TRAVIS_PHP_VERSION != nightly && $COVERAGE != yes ]]; then phpenv config-rm xdebug.ini; fi | ||
- if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then echo 'opcache.enable=1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi | ||
- if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then echo 'opcache.enable_cli=1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi | ||
- travis_retry composer self-update | ||
|
||
install: | ||
- travis_retry composer update --optimize-autoloader --prefer-dist --prefer-stable --no-progress --no-interaction | ||
|
||
before_script: | ||
- mkdir -p "$HOME/.php-cs-fixer" | ||
- cp phpunit.xml.dist phpunit.xml | ||
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | ||
- chmod +x ./cc-test-reporter | ||
- ./cc-test-reporter before-build | ||
|
||
script: | ||
- composer validate | ||
- if [[ $COVERAGE == yes ]]; then vendor/bin/phpunit --coverage-text; else vendor/bin/phpunit --no-coverage; fi | ||
- if [[ $EXECUTE_CS_CHECK == yes ]]; then php -n -d memory_limit=768M vendor/bin/php-cs-fixer fix --config=.php_cs --verbose --dry-run; fi | ||
- if [[ $COVERAGE == yes ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi | ||
|
||
after_success: | ||
- travis_retry php vendor/bin/php-coveralls -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
server: | ||
host: localhost | ||
port: 3306 | ||
database: teamspeak | ||
auth: | ||
username: teamspeak | ||
password: password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
server: | ||
host: localhost | ||
ports: | ||
voice: 9987 | ||
query: 10011 | ||
file: 30033 | ||
tsdns: 41144 | ||
auth: | ||
query: | ||
username: serveradmin | ||
password: password |
Oops, something went wrong.