diff --git a/.editorconfig b/.editorconfig index 9f76bfa..dbb25c6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -15,10 +15,6 @@ trim_trailing_whitespace = true [*.md] trim_trailing_whitespace = false -[*.yml] -indent_size = 2 -indent_style = space - [*.{yml,json}] # The indent size used in the `package.json` file cannot be changed # https://github.com/npm/npm/pull/3180#issuecomment-16336516 diff --git a/.travis.yml b/.travis.yml index 473319d..bc53bbc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,16 +33,20 @@ matrix: - PHPUNIT_TEST=core - DB=MYSQL - PDO=1 - - php: 7.1.2 + - php: 7.1 + env: + - PHPUNIT_TEST=framework + - DB=MYSQL + - php: 7.3 env: - PHPUNIT_TEST=core - DB=PGSQL # admin php tests - - php: 5.6 + - php: 7.0 env: - PHPUNIT_TEST=admin - DB=PGSQL - - php: 7.1.2 + - php: 7.2 env: - PHPUNIT_TEST=admin - DB=MYSQL diff --git a/phpunit.xml.dist b/phpunit.xml.dist index a629724..7a62210 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -4,11 +4,12 @@ Requires PHPUnit 5+ Usage: - - "phpunit": Runs all tests in all folders - - "phpunit framework/tests/": Run all tests of the framework module - - "phpunit framework/tests/filesystem": Run all filesystem tests within the framework module - - "phpunit framework/tests/filesystem/FolderTest.php": Run a single test - - "phpunit coverage-html assets/": Generate coverage report (replace with "-", requires xdebug) + - "vendor/bin/phpunit": Runs all tests in all folders + - "vendor/bin/phpunit vendor/silverstripe/framework/tests/": Run all tests of the framework module + - "vendor/bin/phpunit vendor/silverstripe/framework/tests/filesystem": Run all filesystem tests within framework + - "vendor/bin/phpunit vendor/silverstripe/framework/tests/filesystem/FolderTest.php": Run a single test + - "vendor/bin/phpunit coverage-html assets/": Generate coverage report (replace + with "-", requires xdebug or phpdbg) More information: - http://www.phpunit.de/manual/current/en/textui.html @@ -17,34 +18,31 @@ It is safe to remove this file for normal website operation. --> + + mysite/tests + vendor/silverstripe/cms/tests/php + vendor/silverstripe/framework/tests/php + - - mysite/tests - vendor/silverstripe/cms/tests/php - vendor/silverstripe/framework/tests/php - + + + vendor/silverstripe/framework/tests/php/ + - + - vendor/silverstripe/framework/tests/php/ - vendor/silverstripe/assets/tests/php/ + vendor/silverstripe/assets/tests/php/ vendor/silverstripe/versioned/tests/php/ - vendor/silverstripe/cms/tests/ vendor/silverstripe/admin/tests/php/ - vendor/silverstripe/campaign-admin/tests/php/ vendor/silverstripe/asset-admin/tests/php/ + vendor/silverstripe/campaign-admin/tests/php/ + vendor/silverstripe/cms/tests/ vendor/silverstripe/graphql/tests/ - vendor/silverstripe/siteconfig/tests/php/ vendor/silverstripe/reports/tests/ + vendor/silverstripe/siteconfig/tests/php/ - - - - sanitychecks - -