Skip to content

Commit ce2f0ce

Browse files
Use simple composer.json. (#403)
* Use simple composer.json.
1 parent efc33d2 commit ce2f0ce

7 files changed

Lines changed: 13 additions & 27 deletions

File tree

.github/workflows/db-mssql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
run: composer self-update
8080

8181
- name: Install db-mssql.
82-
run: composer config preferred-install.yiisoft/db-mssql source && composer require yiisoft/db-mssql --no-interaction --no-progress --optimize-autoloader --ansi
82+
run: composer require yiisoft/db-mssql --no-interaction --no-progress --optimize-autoloader --ansi
8383

8484
- name: Run mssql tests with phpunit and code coverage.
8585
run: vendor/bin/phpunit --testsuite Mssql --coverage-clover=coverage.xml --colors=always

.github/workflows/db-mysql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
run: composer self-update
7373

7474
- name: Install db-mysql.
75-
run: composer config preferred-install.yiisoft/db-mysql source && composer require yiisoft/db-mysql --no-interaction --no-progress --optimize-autoloader --ansi
75+
run: composer require yiisoft/db-mysql --no-interaction --no-progress --optimize-autoloader --ansi
7676

7777
- name: Run Mssql tests with phpunit and code coverage.
7878
run: vendor/bin/phpunit --testsuite Mysql --coverage-clover=coverage.xml --colors=always

.github/workflows/db-oracle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
run: composer self-update
6969

7070
- name: Install db-oracle.
71-
run: composer config preferred-install.yiisoft/db-oracle source && composer require yiisoft/db-oracle --no-interaction --no-progress --optimize-autoloader --ansi
71+
run: composer require yiisoft/db-oracle --no-interaction --no-progress --optimize-autoloader --ansi
7272

7373
- name: Run oracle tests with phpunit and code coverage.
7474
run: vendor/bin/phpunit --testsuite Oracle --coverage-clover=coverage.xml --colors=always

.github/workflows/db-pgsql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
run: composer self-update
7777

7878
- name: Install db-pgsql.
79-
run: composer config preferred-install.yiisoft/db-pgsql source && composer require yiisoft/db-pgsql --no-interaction --no-progress --optimize-autoloader --ansi
79+
run: composer require yiisoft/db-pgsql --no-interaction --no-progress --optimize-autoloader --ansi
8080

8181
- name: Run pgsql tests with phpunit and code coverage.
8282
run: vendor/bin/phpunit --testsuite Pgsql --coverage-clover=coverage.xml --colors=always

.github/workflows/db-sqlite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
run: composer self-update
6060

6161
- name: Install db-sqlite.
62-
run: composer config preferred-install.yiisoft/db-sqlite source && composer require yiisoft/db-sqlite --no-interaction --no-progress --optimize-autoloader --ansi
62+
run: composer require yiisoft/db-sqlite --no-interaction --no-progress --optimize-autoloader --ansi
6363

6464
- name: Run sqlite tests with phpunit and code coverage.
6565
run: vendor/bin/phpunit --testsuite Sqlite --coverage-clover=coverage.xml --colors=always

composer.dev.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

composer.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"roave/infection-static-analysis-plugin": "^1.16",
3737
"spatie/phpunit-watcher": "^1.23",
3838
"vimeo/psalm": "^4.18",
39-
"wikimedia/composer-merge-plugin": "^2.0",
4039
"yiisoft/aliases": "^1.1|^2.0",
4140
"yiisoft/di": "^1.0",
4241
"yiisoft/event-dispatcher": "^1.0",
@@ -49,26 +48,25 @@
4948
},
5049
"autoload-dev": {
5150
"psr-4": {
52-
"Yiisoft\\Db\\Tests\\": "tests"
51+
"Yiisoft\\Db\\Tests\\": "tests",
52+
"Yiisoft\\ActiveRecord\\Tests\\": "vendor/yiisoft/active-record/tests",
53+
"Yiisoft\\Db\\Mssql\\Tests\\": "vendor/yiisoft/db-mssql/tests",
54+
"Yiisoft\\Db\\Mysql\\Tests\\": "vendor/yiisoft/db-mysql/tests",
55+
"Yiisoft\\Db\\Oracle\\Tests\\": "vendor/yiisoft/db-oracle/tests",
56+
"Yiisoft\\Db\\Pgsql\\Tests\\": "vendor/yiisoft/db-pgsql/tests",
57+
"Yiisoft\\Db\\Sqlite\\Tests\\": "vendor/yiisoft/db-sqlite/tests"
5358
}
5459
},
5560
"extra": {
5661
"branch-alias": {
5762
"dev-master": "3.0.x-dev"
58-
},
59-
"merge-plugin": {
60-
"include": [
61-
"composer.dev.json"
62-
],
63-
"merge-dev": true
6463
}
6564
},
6665
"config": {
6766
"sort-packages": true,
6867
"allow-plugins": {
6968
"infection/extension-installer": true,
70-
"composer/package-versions-deprecated": true,
71-
"wikimedia/composer-merge-plugin": true
69+
"composer/package-versions-deprecated": true
7270
}
7371
},
7472
"scripts": {

0 commit comments

Comments
 (0)