Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flatten source and test directory structure #3915

Merged
merged 8 commits into from
Mar 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ before_test:
test_script:
- ps: >-
if ($env:db_version) {
$env:phpunit_config = "tests\appveyor\$($env:db).$($env:db_version).$($env:driver).appveyor.xml"
$env:phpunit_config = "ci\appveyor\$($env:db).$($env:db_version).$($env:driver).appveyor.xml"
} else {
$env:phpunit_config = "tests\appveyor\$($env:db).$($env:driver).appveyor.xml"
$env:phpunit_config = "ci\appveyor\$($env:db).$($env:driver).appveyor.xml"
}

if ($env:coverage -eq "yes") {
Expand Down
54 changes: 27 additions & 27 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ before_script:
- |
if [[ -n "$IMAGE" ]]
then
bash ./tests/travis/docker-run-mysql-or-mariadb.sh
bash ./ci/travis/docker-run-mysql-or-mariadb.sh
fi

install:
Expand All @@ -30,9 +30,9 @@ install:
script:
- |
if [ "x$COVERAGE" == "xyes" ]; then
./vendor/bin/phpunit --configuration tests/travis/$DB.travis.xml --coverage-clover clover.xml
./vendor/bin/phpunit --configuration ci/travis/$DB.travis.xml --coverage-clover clover.xml
else
./vendor/bin/phpunit --configuration tests/travis/$DB.travis.xml
./vendor/bin/phpunit --configuration ci/travis/$DB.travis.xml
fi

after_script:
Expand Down Expand Up @@ -117,36 +117,36 @@ jobs:
addons:
postgresql: "10"
before_script:
- bash ./tests/travis/install-postgres-10.sh
- bash ./ci/travis/install-postgres-10.sh
- stage: Test
php: 7.3
env: DB=pgsql POSTGRESQL_VERSION=11.0 COVERAGE=yes
sudo: required
before_script:
- bash ./tests/travis/install-postgres-11.sh
- bash ./ci/travis/install-postgres-11.sh
- stage: Test
php: 7.3
env: DB=sqlsrv COVERAGE=yes
sudo: required
before_script:
- bash ./tests/travis/install-sqlsrv-dependencies.sh
- bash ./tests/travis/install-mssql-sqlsrv.sh
- bash ./tests/travis/install-mssql.sh
- bash ./ci/travis/install-sqlsrv-dependencies.sh
- bash ./ci/travis/install-mssql-sqlsrv.sh
- bash ./ci/travis/install-mssql.sh
- stage: Test
php: 7.3
env: DB=pdo_sqlsrv COVERAGE=yes
sudo: required
before_script:
- bash ./tests/travis/install-sqlsrv-dependencies.sh
- bash ./tests/travis/install-mssql-pdo_sqlsrv.sh
- bash ./tests/travis/install-mssql.sh
- bash ./ci/travis/install-sqlsrv-dependencies.sh
- bash ./ci/travis/install-mssql-pdo_sqlsrv.sh
- bash ./ci/travis/install-mssql.sh
- stage: Test
php: 7.3
env: DB=ibm_db2 COVERAGE=yes
sudo: required
before_script:
- bash ./tests/travis/install-db2.sh
- bash ./tests/travis/install-db2-ibm_db2.sh
- bash ./ci/travis/install-db2.sh
- bash ./ci/travis/install-db2-ibm_db2.sh
- stage: Test
php: 7.3
env: DB=sqlite DEPENDENCIES=low
Expand All @@ -169,7 +169,7 @@ jobs:
env: DB=pgsql POSTGRESQL_VERSION=11.0
sudo: required
before_script:
- bash ./tests/travis/install-postgres-11.sh
- bash ./ci/travis/install-postgres-11.sh
- stage: Test
php: 7.4
env: DB=sqlite
Expand All @@ -178,17 +178,17 @@ jobs:
env: DB=sqlsrv
sudo: required
before_script:
- bash ./tests/travis/install-sqlsrv-dependencies.sh
- bash ./tests/travis/install-mssql-sqlsrv.sh
- bash ./tests/travis/install-mssql.sh
- bash ./ci/travis/install-sqlsrv-dependencies.sh
- bash ./ci/travis/install-mssql-sqlsrv.sh
- bash ./ci/travis/install-mssql.sh
- stage: Test
php: 7.4
env: DB=pdo_sqlsrv
sudo: required
before_script:
- bash ./tests/travis/install-sqlsrv-dependencies.sh
- bash ./tests/travis/install-mssql-pdo_sqlsrv.sh
- bash ./tests/travis/install-mssql.sh
- bash ./ci/travis/install-sqlsrv-dependencies.sh
- bash ./ci/travis/install-mssql-pdo_sqlsrv.sh
- bash ./ci/travis/install-mssql.sh

- stage: Test
php: nightly
Expand All @@ -207,7 +207,7 @@ jobs:
env: DB=pgsql POSTGRESQL_VERSION=11.0
sudo: required
before_script:
- bash ./tests/travis/install-postgres-11.sh
- bash ./ci/travis/install-postgres-11.sh
- stage: Test
php: nightly
env: DB=sqlite
Expand All @@ -216,17 +216,17 @@ jobs:
env: DB=sqlsrv
sudo: required
before_script:
- bash ./tests/travis/install-sqlsrv-dependencies.sh
- bash ./tests/travis/install-mssql-sqlsrv.sh
- bash ./tests/travis/install-mssql.sh
- bash ./ci/travis/install-sqlsrv-dependencies.sh
- bash ./ci/travis/install-mssql-sqlsrv.sh
- bash ./ci/travis/install-mssql.sh
- stage: Test
php: nightly
env: DB=pdo_sqlsrv
sudo: required
before_script:
- bash ./tests/travis/install-sqlsrv-dependencies.sh
- bash ./tests/travis/install-mssql-pdo_sqlsrv.sh
- bash ./tests/travis/install-mssql.sh
- bash ./ci/travis/install-sqlsrv-dependencies.sh
- bash ./ci/travis/install-mssql-pdo_sqlsrv.sh
- bash ./ci/travis/install-mssql.sh

- stage: Test
if: type = cron
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@

<testsuites>
<testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory>
<directory>../../tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">../../lib/Doctrine</directory>
<directory suffix=".php">../../src</directory>
</whitelist>
</filter>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@

<testsuites>
<testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory>
<directory>../../tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">../../lib/Doctrine</directory>
<directory suffix=".php">../../src</directory>
</whitelist>
</filter>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@

<testsuites>
<testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory>
<directory>../../tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">../../lib/Doctrine</directory>
<directory suffix=".php">../../src</directory>
</whitelist>
</filter>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@

<testsuites>
<testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory>
<directory>../../tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">../../lib/Doctrine</directory>
<directory suffix=".php">../../src</directory>
</whitelist>
</filter>

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@

<testsuites>
<testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory>
<directory>../../tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">../../lib/Doctrine</directory>
<directory suffix=".php">../../src</directory>
</whitelist>
</filter>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@

<testsuites>
<testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory>
<directory>../../tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">../../lib/Doctrine</directory>
<directory suffix=".php">../../src</directory>
</whitelist>
</filter>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@

<testsuites>
<testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory>
<directory>../../tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">../../lib/Doctrine</directory>
<directory suffix=".php">../../src</directory>
</whitelist>
</filter>

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@

<testsuites>
<testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory>
<directory>../../tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">../../lib/Doctrine</directory>
<directory suffix=".php">../../src</directory>
</whitelist>
</filter>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@

<testsuites>
<testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory>
<directory>../../tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">../../lib/Doctrine</directory>
<directory suffix=".php">../../src</directory>
</whitelist>
</filter>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@

<testsuites>
<testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory>
<directory>../../tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">../../lib/Doctrine</directory>
<directory suffix=".php">../../src</directory>
</whitelist>
</filter>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@

<testsuites>
<testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory>
<directory>../../tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">../../lib/Doctrine</directory>
<directory suffix=".php">../../src</directory>
</whitelist>
</filter>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@

<testsuites>
<testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory>
<directory>../../tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">../../lib/Doctrine</directory>
<directory suffix=".php">../../src</directory>
</whitelist>
</filter>

Expand Down
4 changes: 2 additions & 2 deletions tests/travis/pgsql.travis.xml → ci/travis/pgsql.travis.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@

<testsuites>
<testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory>
<directory>../../tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">../../lib/Doctrine</directory>
<directory suffix=".php">../../src</directory>
</whitelist>
</filter>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@

<testsuites>
<testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory>
<directory>../../tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">../../lib/Doctrine</directory>
<directory suffix=".php">../../src</directory>
</whitelist>
</filter>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@

<testsuites>
<testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory>
<directory>../../tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">../../lib/Doctrine</directory>
<directory suffix=".php">../../src</directory>
</whitelist>
</filter>

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
"sort-packages": true
},
"autoload": {
"psr-4": { "Doctrine\\DBAL\\": "lib/Doctrine/DBAL" }
"psr-4": { "Doctrine\\DBAL\\": "src" }
},
"autoload-dev": {
"psr-4": { "Doctrine\\Tests\\": "tests/Doctrine/Tests" }
"psr-4": { "Doctrine\\DBAL\\Tests\\": "tests" }
},
"extra": {
"branch-alias": {
Expand Down
Loading