use default composer vendor directory

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/1052/head
Robin Appelman 2020-10-09 15:07:32 +02:00
rodzic 4ff65bcf76
commit 67a719890e
7 zmienionych plików z 9 dodań i 10 usunięć

Wyświetl plik

@ -27,12 +27,12 @@ steps:
image: nextcloudci/php7.2:php7.2-9 image: nextcloudci/php7.2:php7.2-9
commands: commands:
- composer install - composer install
- ./composer/bin/parallel-lint --exclude ./composer/ . - ./vendor/bin/parallel-lint --exclude ./vendor/ .
- name: syntax-php7.3 - name: syntax-php7.3
image: nextcloudci/php7.3:php7.3-5 image: nextcloudci/php7.3:php7.3-5
commands: commands:
- composer install - composer install
- ./composer/bin/parallel-lint --exclude ./composer/ . - ./vendor/bin/parallel-lint --exclude ./vendor/ .
trigger: trigger:
branch: branch:
- master - master
@ -50,9 +50,9 @@ steps:
CORE_BRANCH: stable20 CORE_BRANCH: stable20
DB: sqlite DB: sqlite
commands: commands:
- composer install
- bash ./tests/drone-server-setup.sh $APP_NAME $CORE_BRANCH $DB - bash ./tests/drone-server-setup.sh $APP_NAME $CORE_BRANCH $DB
- cd ../server/apps/$APP_NAME - cd ../server/apps/$APP_NAME
- composer install
- phpunit -c tests/phpunit.xml --coverage-clover build/php-unit.coverage.xml - phpunit -c tests/phpunit.xml --coverage-clover build/php-unit.coverage.xml
trigger: trigger:
branch: branch:
@ -71,9 +71,9 @@ steps:
CORE_BRANCH: stable20 CORE_BRANCH: stable20
DB: mysql DB: mysql
commands: commands:
- composer install
- bash ./tests/drone-server-setup.sh $APP_NAME $CORE_BRANCH $DB - bash ./tests/drone-server-setup.sh $APP_NAME $CORE_BRANCH $DB
- cd ../server/apps/$APP_NAME - cd ../server/apps/$APP_NAME
- composer install
- phpunit -c tests/phpunit.xml --coverage-clover build/php-unit.coverage.xml - phpunit -c tests/phpunit.xml --coverage-clover build/php-unit.coverage.xml
services: services:
- name: mysql - name: mysql
@ -101,9 +101,9 @@ steps:
CORE_BRANCH: stable20 CORE_BRANCH: stable20
DB: postgres DB: postgres
commands: commands:
- composer install
- bash ./tests/drone-server-setup.sh $APP_NAME $CORE_BRANCH $DB - bash ./tests/drone-server-setup.sh $APP_NAME $CORE_BRANCH $DB
- cd ../server/apps/$APP_NAME - cd ../server/apps/$APP_NAME
- composer install
- phpunit -c tests/phpunit.xml --coverage-clover build/php-unit.coverage.xml - phpunit -c tests/phpunit.xml --coverage-clover build/php-unit.coverage.xml
services: services:
- name: postgres - name: postgres

1
.gitignore vendored
Wyświetl plik

@ -3,7 +3,6 @@ js/
node_modules/ node_modules/
vendor/ vendor/
img/twemoji/ img/twemoji/
composer/
cypress/screenshots cypress/screenshots
cypress/snapshots cypress/snapshots

Wyświetl plik

@ -13,7 +13,6 @@
"platform": { "platform": {
"php": "7.0.0" "php": "7.0.0"
}, },
"vendor-dir": "composer/",
"optimize-autoloader": true, "optimize-autoloader": true,
"classmap-authoritative": true, "classmap-authoritative": true,
"autoloader-suffix": "Social" "autoloader-suffix": "Social"

Wyświetl plik

@ -46,6 +46,7 @@ use OCP\AppFramework\QueryException;
use OCP\IServerContainer; use OCP\IServerContainer;
use Throwable; use Throwable;
require_once __DIR__ . '/../../vendor/autoload.php';
/** /**
* Class Application * Class Application

Wyświetl plik

@ -34,7 +34,7 @@ use OC;
use OCA\Social\Service\ConfigService; use OCA\Social\Service\ConfigService;
use OCA\Social\Service\FediverseService; use OCA\Social\Service\FediverseService;
require_once(__DIR__ . '/../composer/autoload.php'); require_once(__DIR__ . '/../vendor/autoload.php');
try { try {
$fediverseService = OC::$server->query(FediverseService::class); $fediverseService = OC::$server->query(FediverseService::class);

Wyświetl plik

@ -37,7 +37,7 @@ use OCA\Social\Service\ConfigService;
use OCA\Social\Service\FediverseService; use OCA\Social\Service\FediverseService;
use OCP\AppFramework\QueryException; use OCP\AppFramework\QueryException;
require_once(__DIR__ . '/../composer/autoload.php'); require_once(__DIR__ . '/../vendor/autoload.php');
if (!array_key_exists('resource', $_GET)) { if (!array_key_exists('resource', $_GET)) {
echo 'missing resource'; echo 'missing resource';

Wyświetl plik

@ -1,7 +1,7 @@
<?php <?php
require_once __DIR__ . '/../../../tests/bootstrap.php'; require_once __DIR__ . '/../../../tests/bootstrap.php';
require_once __DIR__.'/../composer/autoload.php'; require_once __DIR__.'/../vendor/autoload.php';
OC_App::loadApp('social'); OC_App::loadApp('social');
OC_Hook::clear(); OC_Hook::clear();