Skip to content

Commit

Permalink
Refactor paths and fix travis
Browse files Browse the repository at this point in the history
  • Loading branch information
mrow4a committed Nov 28, 2018
1 parent 083f261 commit b78caa0
Show file tree
Hide file tree
Showing 17 changed files with 33 additions and 18 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ php:
env:
global:
- CORE_BRANCH=master
- APP_NAME=richdocuments
matrix:
- DB=sqlite

Expand All @@ -17,7 +18,9 @@ branches:
sudo: true
before_install:
- wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh
- bash ./before_install.sh richdocuments $CORE_BRANCH $DB
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
- cd ../core
- php occ app:enable $APP_NAME

script:
# Test lint
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 @@ -13,7 +13,7 @@

use \OC\Files\View;
use \OCP\AppFramework\Controller;
use OCP\Constants;
use \OCP\Constants;
use \OCP\IRequest;
use \OCP\IConfig;
use \OCP\IL10N;
Expand All @@ -28,20 +28,8 @@
use \OCA\Richdocuments\Db;
use \OCA\Richdocuments\Helper;
use \OCA\Richdocuments\Storage;
use \OCA\Richdocuments\DownloadResponse;

class ResponseException extends \Exception {
private $hint;

public function __construct($description, $hint = '') {
parent::__construct($description);
$this->hint = $hint;
}

public function getHint() {
return $this->hint;
}
}
use \OCA\Richdocuments\Http\DownloadResponse;
use \OCA\Richdocuments\Http\ResponseException;

class DocumentController extends Controller {

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/downloadresponse.php → lib/http/DownloadResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* later.
*/

namespace OCA\Richdocuments;
namespace OCA\Richdocuments\Http;

use \OCP\AppFramework\Http;
use \OCP\IRequest;
Expand Down
24 changes: 24 additions & 0 deletions lib/http/ResponseException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
/**
* ownCloud - Richdocuments App
*
* @author Piotr Mrowczynski <piotr@owncloud.com>
* @copyright 2018 Piotr Mrowczynski <piotr@owncloud.com>
*
* This file is licensed under the Affero General Public License version 3 or
* later.
*/
namespace OCA\Richdocuments\Http;

class ResponseException extends \Exception {
private $hint;

public function __construct($description, $hint = '') {
parent::__construct($description);
$this->hint = $hint;
}

public function getHint() {
return $this->hint;
}
}
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
timeoutForLargeTests="900"
>
<testsuite name='unit'>
<directory suffix='test.php'>./tests/unit</directory>
<directory suffix='Test.php'>./tests/unit</directory>
</testsuite>
<!-- filters for code coverage -->
<filter>
Expand Down
File renamed without changes.

0 comments on commit b78caa0

Please sign in to comment.