Skip to content

Commit

Permalink
Add base file
Browse files Browse the repository at this point in the history
  • Loading branch information
stelin committed Jun 26, 2019
1 parent d9656fd commit 05eeade
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .gitignore
@@ -0,0 +1,14 @@
.buildpath
.settings/
.project
*.patch
.idea/
.git/
runtime/
vendor/
temp/
*.lock
.phpintel/
.env
.DS_Store
public/devtool/
13 changes: 13 additions & 0 deletions .travis.yml
@@ -0,0 +1,13 @@
language: php

php:
- 7.1
- 7.2
- 7.3

before_script:
- composer config -g process-timeout 900 && composer update
- phpenv config-rm xdebug.ini

script:
- composer test
34 changes: 34 additions & 0 deletions composer.json
@@ -0,0 +1,34 @@
{
"name": "swoft/breaker",
"type": "library",
"keywords": [
"php",
"swoole",
"swoft"
],
"description": "micro-service framework base on swoole",
"license": "Apache-2.0",
"require": {
"php": ">7.1",
"swoft/stdlib": "~2.0.0"
},
"autoload": {
"psr-4": {
"Swoft\\Breaker\\": "src/"
}
},
"require-dev": {
"phpunit/phpunit": "^7.5"
},
"autoload-dev": {
"psr-4": {
"SwoftTest\\Breaker\\Unit\\": "test/unit/",
"SwoftTest\\Breaker\\Testing\\": "test/testing/"
}
},
"repositories": {
},
"scripts": {
"test": "./vendor/bin/phpunit -c phpunit.xml"
}
}
4 changes: 4 additions & 0 deletions config/base.php
@@ -0,0 +1,4 @@
<?php
return [

];
22 changes: 22 additions & 0 deletions phpunit.xml
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
bootstrap="test/bootstrap.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="test">
<directory suffix="Test.php">./test/unit</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src/*</directory>
</whitelist>
</filter>
</phpunit>

0 comments on commit 05eeade

Please sign in to comment.