Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Neumann <artur@jankaritech.com>
  • Loading branch information
individual-it committed Jan 25, 2022
1 parent e96555c commit 01e669f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@ jobs:
run: npm run test:unit

- name: PHP Unit Tests
run: make test
run: |
git clone --depth 1 https://github.com/nextcloud/server.git -b v23.0.0
make test
9 changes: 7 additions & 2 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
use Composer\Autoload\ClassLoader;

include_once __DIR__.'/vendor/autoload.php';
if (file_exists(__DIR__ . '/server')) {
$serverPath = __DIR__ . '/server';
} else {
$serverPath = __DIR__ . '/../..';
}

$classLoader = new ClassLoader();
$classLoader->addPsr4("OCA\\OpenProject\\Service\\", __DIR__ . '/lib/Service', true);
$classLoader->addPsr4("OCP\\", __DIR__ . '/../../lib/public', true);
$classLoader->addPsr4("OC\\", __DIR__ . '/../../lib/private', true);
$classLoader->addPsr4("OCP\\", $serverPath . '/lib/public', true);
$classLoader->addPsr4("OC\\", $serverPath . '/lib/private', true);
$classLoader->addPsr4("OCA\\OpenProject\\AppInfo\\", __DIR__ . '/lib/AppInfo', true);
$classLoader->register();

Expand Down

0 comments on commit 01e669f

Please sign in to comment.