Skip to content

Commit f34c6c2

Browse files
authored
Merge pull request #1 from zonneplan/feature/initial-package-improvements
Travis & PHPUnit configuration
2 parents 1320b27 + b29018d commit f34c6c2

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ tests/temp
55
composer.lock
66
phpunit.xml
77
.env
8+
.idea
9+
.phpunit.result.cache

Diff for: .travis.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
cache:
2+
directories:
3+
- $HOME/.composer/cache
4+
5+
language: php
6+
7+
php:
8+
- 7.2
9+
- 7.3
10+
11+
env:
12+
matrix:
13+
- COMPOSER_FLAGS="--prefer-lowest"
14+
- COMPOSER_FLAGS=""
15+
16+
before_script:
17+
- travis_retry composer self-update
18+
- travis_wait composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
19+
20+
script:
21+
- vendor/bin/phpunit --testdox

Diff for: phpunit.xml.dist

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit bootstrap="vendor/autoload.php"
3+
backupGlobals="false"
4+
backupStaticAttributes="false"
5+
colors="true"
6+
verbose="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
processIsolation="false"
11+
stopOnFailure="false">
12+
<testsuites>
13+
<testsuite name="Laravel Module Loader Test Suite">
14+
<directory>tests</directory>
15+
</testsuite>
16+
</testsuites>
17+
<filter>
18+
<whitelist>
19+
<directory suffix=".php">src/</directory>
20+
</whitelist>
21+
</filter>
22+
</phpunit>

0 commit comments

Comments
 (0)