Skip to content

Commit

Permalink
Mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jan 16, 2022
0 parents commit d2517a8
Show file tree
Hide file tree
Showing 354 changed files with 17,858 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .gitignore
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
15 changes: 15 additions & 0 deletions .php_cs
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',
),
));
62 changes: 62 additions & 0 deletions .travis.yml
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
7 changes: 7 additions & 0 deletions .ts3config/mysql.yml.dist
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
11 changes: 11 additions & 0 deletions .ts3config/teamspeak3.yml.dist
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
Loading

0 comments on commit d2517a8

Please sign in to comment.