Skip to content

Commit

Permalink
Merge pull request #5 from apoca/tests-support
Browse files Browse the repository at this point in the history
Added support to tests
  • Loading branch information
apoca authored Mar 18, 2019
2 parents 7cb97f4 + a4f32c2 commit 96ce412
Show file tree
Hide file tree
Showing 7 changed files with 4,212 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@ Homestead.json
composer.phar
composer.lock
.DS_Store
Thumbs.db
Thumbs.db

# tests
.build
.phpunit.result.cache
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

language: php
dist: trusty
sudo: false

matrix:
include:
- php: 7.2
env: FRAMEWORK_VERSION=laravel/framework:5.8.*

before_install:
- printf "\n" | w

install:
- composer require "${FRAMEWORK_VERSION}" --no-update -n
- travis_retry composer install --no-suggest --prefer-dist -n -o

script:
- mkdir -p build/logs
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml

after_success:
- vendor/bin/php-coveralls -v
18 changes: 16 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,32 @@
"authors": [
{
"name": "Miguel Vieira",
"email": "[email protected]"
"email": "[email protected]",
"homepage": "http://www.miguelvieira.com.pt"
}
],
"require": {
"php": "^7.1",
"php": "^7.2",
"ext-json": "*",
"guzzlehttp/guzzle": "^6.3"
},
"require-dev": {
"laravel/framework": "^5.8",
"mockery/mockery": "^1.2",
"php-coveralls/php-coveralls": "^2.1",
"phpunit/php-code-coverage": "^7.0",
"phpunit/phpunit": "^8.0"
},
"autoload": {
"psr-4": {
"Apoca\\Sibs\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Apoca\\Sibs\\Tests\\": "tests/"
}
},
"config": {
"sort-packages": true
},
Expand Down
Loading

0 comments on commit 96ce412

Please sign in to comment.