Browse Source

add `.gitattributes`

tags/v7.0.1
Paul Klimov 7 months ago
parent
commit
c2297cccf7
3 changed files with 59 additions and 38 deletions
  1. 11
    0
      .gitattributes
  2. 22
    13
      .gitignore
  3. 26
    25
      phpunit.xml.dist

+ 11
- 0
.gitattributes View File

@@ -0,0 +1,11 @@
# Ignore all test and documentation for archive
/.gitattributes export-ignore
/.gitignore export-ignore
/.gitlab-ci.yml export-ignore
/.styleci.yml export-ignore
/.scrutinizer.yml export-ignore
/.editorconfig export-ignore
/phpunit.xml.dist export-ignore
/tests export-ignore
/docs export-ignore
/CONTRIBUTING.md export-ignore

+ 22
- 13
.gitignore View File

@@ -1,13 +1,22 @@
/vendor
composer.phar
composer.lock
.directory
.DS_Store
Thumbs.db
*.sh
/tests/tmp
/tests/sitema*.xml
/tests/sitema*.xml.gz
.php_cs
/.php_cs.cache
/.phpunit.result.cache
.directory
.DS_Store
Thumbs.db
*.sh

# composer
composer.phar
composer.lock
/vendor

# cs
.php_cs
/.php_cs.cache

# phpunit
/phpunit.xml
/.phpunit.result.cache

# test runtime files
/tests/tmp
/tests/sitema*.xml
/tests/sitema*.xml.gz

phpunit.xml → phpunit.xml.dist View File

@@ -1,25 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
>
<testsuites>
<testsuite name="Sitemap Test Suite">
<directory suffix=".php">./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src/Laravelium/Sitemap</directory>
<exclude>
<directory>./tests/</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
>
<testsuites>
<testsuite name="Sitemap Test Suite">
<directory suffix=".php">./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src/Laravelium/Sitemap</directory>
<exclude>
<directory>./tests/</directory>
</exclude>
</whitelist>
</filter>
</phpunit>

Loading…
Cancel
Save